ee07abad60
svn path=/nixpkgs/branches/stdenv-updates/; revision=13004
23 lines
450 B
Nix
23 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
|
|
";
|
|
}
|