2015-09-15 11:13:22 +02:00
|
|
|
{stdenv, fetchurl, xlibsWrapper, mesa}:
|
2007-04-18 16:21:24 +02:00
|
|
|
|
2013-04-17 13:36:05 +02:00
|
|
|
let version = "8.1.0"; in
|
2011-07-14 14:23:03 +02:00
|
|
|
|
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";
|
2013-04-17 13:36:05 +02:00
|
|
|
sha256 = "0a58hw5850731p4smz4zqsbvyxvgjf7n5xdbs9l1wamk8q3gl0wp";
|
2007-04-18 16:21:24 +02:00
|
|
|
};
|
|
|
|
|
2015-09-15 11:13:22 +02:00
|
|
|
buildInputs = [xlibsWrapper mesa];
|
2007-04-18 16:21:24 +02:00
|
|
|
|
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 = "
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2011-07-14 14:23:03 +02:00
|
|
|
cp glxinfo glxgears $out/bin/
|
2007-04-18 16:21:24 +02:00
|
|
|
";
|
|
|
|
}
|