3
0
Fork 0
forked from mirrors/nixpkgs

glava: adjust syntax in patchelf command

This commit is contained in:
Edmund Wu 2018-07-12 19:48:44 -04:00
parent 1539167d21
commit 4d1900ac6e
No known key found for this signature in database
GPG key ID: 36B3A59B9F0AA985

View file

@ -84,8 +84,9 @@ in
mv $out/usr/bin/glava $out/bin/.glava-unwrapped
rm -rf $out/usr
patchelf $out/bin/.glava-unwrapped \
patchelf \
--set-rpath "$(patchelf --print-rpath $out/bin/.glava-unwrapped):${makeLibraryPath [ libGL ]}" \
$out/bin/.glava-unwrapped
substitute ${wrapperScript} $out/bin/glava --subst-var out
chmod +x $out/bin/glava