patch-nupkgs: use --add-rpath instead of --set-rpath

This avoids stripping $ORIGIN from libs that need it.
This commit is contained in:
David McFarland 2024-03-31 14:53:11 -03:00
parent 41a076e9d4
commit b2c788ad1b
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ in writeShellScriptBin "patch-nupkgs" ''
--set-interpreter "${stdenv.cc.bintools.dynamicLinker}" \
"$tmp" ||:
patchelf \
--set-rpath "${binaryRPath}" \
--add-rpath "${binaryRPath}" \
"$tmp" ||:
mv "$tmp" "$p"
fi