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