Merge pull request #278672 from mprihoda/sbt-arch-fix

Link correct sbtn binary for aarch64 platform
This commit is contained in:
Nick Cao 2024-01-26 08:40:57 -05:00 committed by GitHub
commit 8634efa577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,9 @@ stdenv.mkDerivation (finalAttrs: {
mkdir -p $out/share/sbt $out/bin
cp -ra . $out/share/sbt
ln -sT ../share/sbt/bin/sbt $out/bin/sbt
ln -sT ../share/sbt/bin/sbtn-x86_64-${
ln -sT ../share/sbt/bin/sbtn-${
if (stdenv.hostPlatform.isAarch64) then "aarch64" else "x86_64"
}-${
if (stdenv.isDarwin) then "apple-darwin" else "pc-linux"
} $out/bin/sbtn