summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-06-04 09:59:33 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-06-04 09:59:33 +0000
commit9029c3b61f32fa61145689cf537ca9a552e1ba50 (patch)
treeb25b7819d9da6c0b1a1ef071640ac41c3b24a468 /pkgs/tools/graphics
parentdcf01e5925d82c8bf19b04f2afb99bc6d822d8ef (diff)
downloadnixpkgs-9029c3b61f32fa61145689cf537ca9a552e1ba50.tar
nixpkgs-9029c3b61f32fa61145689cf537ca9a552e1ba50.tar.gz
nixpkgs-9029c3b61f32fa61145689cf537ca9a552e1ba50.tar.bz2
nixpkgs-9029c3b61f32fa61145689cf537ca9a552e1ba50.tar.lz
nixpkgs-9029c3b61f32fa61145689cf537ca9a552e1ba50.tar.xz
nixpkgs-9029c3b61f32fa61145689cf537ca9a552e1ba50.tar.zst
nixpkgs-9029c3b61f32fa61145689cf537ca9a552e1ba50.zip
* NVIDIA driver: set a RUNPATH on libGL.so and friends. This ensures
  that applications that link against it don't need to have its
  dependencies (like libXext) in *their* RUNPATHs.
* glxinfo: don't add /var/run/opengl-driver/lib to the RUNPATH.
  Instead LD_LIBRARY_PATH should be set to
  /var/run/opengl-driver/lib at runtime.  This is much more pure, and
  it obviates the need for patchelfing all OpenGL applications.
  (TODO: remove patchelf hacks for other OpenGL programs as well.)

svn path=/nixpkgs/branches/stdenv-updates/; revision=11972
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/glxinfo/default.nix8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkgs/tools/graphics/glxinfo/default.nix b/pkgs/tools/graphics/glxinfo/default.nix
index 5bff7815eba..0e2fa198a86 100644
--- a/pkgs/tools/graphics/glxinfo/default.nix
+++ b/pkgs/tools/graphics/glxinfo/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, x11, mesa, libXext}:
+{stdenv, fetchurl, x11, mesa}:
 
 stdenv.mkDerivation {
   name = "glxinfo-6.5.2";
@@ -20,10 +20,4 @@ stdenv.mkDerivation {
     ensureDir $out/bin
     cp glxinfo glxgears $out/bin
   ";
-
-  postFixup = "
-    for i in $out/bin/*; do
-      patchelf --set-rpath /var/run/opengl-driver/lib:${libXext}/lib:$(patchelf --print-rpath $i) $i
-    done
-  ";
 }