glmark2: don't overwrite LD_LIBRARY_PATH from environment

For driver development, I usually point LD_LIBRARY_PATH at an
install-dir from an in-progress mesa checkout. Clearing the previous
LD_LIBRARY_PATH value breaks this, and causes glmark2 to attempt to use
the system drivers.
This commit is contained in:
Olivia Lee
2025-04-22 15:20:45 -07:00
parent b024ced1aa
commit 2a8b17f1d5
+1 -1
View File
@@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
postInstall = ''
for binary in $out/bin/glmark2*; do
wrapProgram $binary \
--set LD_LIBRARY_PATH ${libGL}/lib
--prefix LD_LIBRARY_PATH ":" ${libGL}/lib
done
'';