Fix nix-portable pkgStatic symlink handling

This commit is contained in:
2026-03-04 16:42:49 +01:00
parent 57077e0276
commit 35df90594e

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