mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
9029c3b61f
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
24 lines
477 B
Nix
24 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
|
|
";
|
|
}
|