2015-09-15 10:13:22 +01:00
|
|
|
{stdenv, fetchurl, xlibsWrapper, mesa}:
|
2007-04-18 15:21:24 +01:00
|
|
|
|
2013-04-17 12:36:05 +01:00
|
|
|
let version = "8.1.0"; in
|
2011-07-14 13:23:03 +01:00
|
|
|
|
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";
|
2013-04-17 12:36:05 +01:00
|
|
|
sha256 = "0a58hw5850731p4smz4zqsbvyxvgjf7n5xdbs9l1wamk8q3gl0wp";
|
2007-04-18 15:21:24 +01:00
|
|
|
};
|
|
|
|
|
2015-09-15 10:13:22 +01:00
|
|
|
buildInputs = [xlibsWrapper mesa];
|
2007-04-18 15:21:24 +01:00
|
|
|
|
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
|
|
|
";
|
|
|
|
}
|