Merge pull request #314226 from rtimush/sbtn

sbt: fix sbtn on apple-darwin
This commit is contained in:
Nick Cao 2024-06-08 10:35:14 -04:00 committed by GitHub
commit c65c72de27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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