sbt: fix sbtn on apple-darwin

This commit is contained in:
Roman Timushev 2024-05-24 10:26:43 +02:00
parent da028a2936
commit 1f1f0cdf24

View File

@ -33,9 +33,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