Fix nix-portable pkgStatic symlink handling

This commit is contained in:
2026-03-04 16:42:49 +01:00
committed by Rodrigo Arias Mallo
parent a2e9acd756
commit 35cfc5a16a

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: ''