2007-05-28 16:10:46 +02:00
|
|
|
{stdenv, fetchurl, x11, mesa, libXext}:
|
2007-04-18 16:21:24 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "glxinfo-6.5.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2007-08-27 15:01:33 +02:00
|
|
|
url = mirror://sourceforge/mesa3d/MesaDemos-6.5.2.tar.bz2;
|
2007-04-18 16:21:24 +02:00
|
|
|
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
|
|
|
|
";
|
|
|
|
|
|
|
|
postFixup = "
|
|
|
|
for i in $out/bin/*; do
|
2007-06-09 21:46:27 +02:00
|
|
|
patchelf --set-rpath /var/run/opengl-driver/lib:${libXext}/lib:$(patchelf --print-rpath $i) $i
|
2007-04-18 16:21:24 +02:00
|
|
|
done
|
|
|
|
";
|
|
|
|
}
|