nixpkgs/pkgs/tools/graphics/glxinfo/default.nix
Eelco Dolstra 9029c3b61f * 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
2008-06-04 09:59:33 +00:00

23 lines
477 B
Nix

{stdenv, fetchurl, x11, mesa}:
stdenv.mkDerivation {
name = "glxinfo-6.5.2";
src = fetchurl {
url = mirror://sourceforge/mesa3d/MesaDemos-6.5.2.tar.bz2;
sha256 = "1shfwy0sy3kdk3nykp1gv6s0lafqgqnadwarw5cbpw7mkfap8kw0";
};
buildInputs = [x11 mesa];
buildPhase = "
cd progs/xdemos
gcc glxinfo.c -o glxinfo -lGL -lX11
gcc glxgears.c -o glxgears -lGL -lX11
";
installPhase = "
ensureDir $out/bin
cp glxinfo glxgears $out/bin
";
}