2008-06-04 11:59:33 +02:00
|
|
|
{stdenv, fetchurl, x11, mesa}:
|
2007-04-18 16:21:24 +02:00
|
|
|
|
2011-07-14 14:23:03 +02:00
|
|
|
let version = "8.0.1"; in
|
|
|
|
|
2007-04-18 16:21:24 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-07-14 14:23:03 +02:00
|
|
|
name = "glxinfo-${version}";
|
|
|
|
|
2007-04-18 16:21:24 +02:00
|
|
|
src = fetchurl {
|
2011-07-14 14:23:03 +02:00
|
|
|
url = "ftp://ftp.freedesktop.org/pub/mesa/demos/${version}/mesa-demos-${version}.tar.bz2";
|
|
|
|
sha256 = "1lbp1llpx0hl5k79xb653yvjvk9mlikj73r8xjzyxqqp1nrg5isb";
|
2007-04-18 16:21:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [x11 mesa];
|
|
|
|
|
2011-07-14 14:23:03 +02:00
|
|
|
configurePhase = "true";
|
|
|
|
|
2007-04-18 16:21:24 +02:00
|
|
|
buildPhase = "
|
2011-07-14 14:23:03 +02:00
|
|
|
cd src/xdemos
|
|
|
|
gcc glxinfo.c -o glxinfo -lGL -lX11
|
2007-04-18 16:21:24 +02:00
|
|
|
gcc glxgears.c -o glxgears -lGL -lX11
|
|
|
|
";
|
|
|
|
|
|
|
|
installPhase = "
|
|
|
|
ensureDir $out/bin
|
2011-07-14 14:23:03 +02:00
|
|
|
cp glxinfo glxgears $out/bin/
|
2007-04-18 16:21:24 +02:00
|
|
|
";
|
|
|
|
}
|