1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

p4v: patch the interpreter for all binaries, not just p4merge.bin

This commit is contained in:
Nicolas Schneider 2018-03-18 15:06:51 +01:00
parent b07bc129cb
commit 7d767d3ac3

View file

@ -28,9 +28,9 @@ stdenv.mkDerivation rec {
mkdir -p $out/lib/p4v
cp -r lib/p4v/P4VResources $out/lib/p4v
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/p4merge.bin
for f in $out/bin/*.bin ; do
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $f
wrapProgram $f \
--suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb \