nixpkgs/pkgs/tools/graphics/glxinfo/default.nix
Eelco Dolstra ee07abad60 * Mesa 7.2.
svn path=/nixpkgs/branches/stdenv-updates/; revision=13004
2008-10-08 16:56:52 +00:00

24 lines
450 B
Nix

{stdenv, fetchurl, x11, mesa}:
stdenv.mkDerivation {
name = "glxinfo-7.2";
src = fetchurl {
url = mirror://sourceforge/mesa3d/MesaDemos-7.2.tar.bz2;
md5 = "22e03dc4038cd63f32c21eb60994892b";
};
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
";
}