Fix nix-portable pkgStatic symlink handling

Reviewed-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
2026-03-04 16:42:49 +01:00
parent 7195ca4cb6
commit 1eaca98618

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