2018-02-24 12:06:44 +00:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, libGL }:
|
2007-04-18 15:21:24 +01:00
|
|
|
|
2016-04-12 17:15:21 +01:00
|
|
|
let version = "8.3.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 {
|
2018-02-24 13:12:44 +00:00
|
|
|
url = "ftp://ftp.freedesktop.org/pub/libGLU_combined/demos/${version}/mesa-demos-${version}.tar.bz2";
|
2016-04-12 17:15:21 +01:00
|
|
|
sha256 = "1vqb7s5m3fcg2csbiz45mha1pys2xx6rhw94fcyvapqdpm5iawy1";
|
2007-04-18 15:21:24 +01:00
|
|
|
};
|
|
|
|
|
2018-02-24 12:06:44 +00:00
|
|
|
buildInputs = [ xlibsWrapper libGL ];
|
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
|
2016-04-12 17:15:21 +01:00
|
|
|
gcc glxinfo.c glinfo_common.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
|
|
|
";
|
2016-08-02 17:06:29 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2007-04-18 15:21:24 +01:00
|
|
|
}
|