Fix nix-portable pkgStatic symlink handling

This commit is contained in:
2026-03-04 16:42:49 +01:00
parent 087caf635b
commit eb579e9429

View File

@@ -69,7 +69,13 @@ let
{ nativeBuildInputs = [ upx ]; }
''
mkdir -p $out/bin
upx -9 -o $out/bin/${binName} ${binPath}
theBinPath=${binPath}
if [[ -L "$theBinPath" ]]; then
theBinPath=$(readlink -f "$theBinPath")
fi
upx -9 -o $out/bin/${binName} $theBinPath
'';
installBin = pkg: bin: ''