2018-03-17 16:57:15 +00:00
|
|
|
{ stdenv, fetchurl, libGL, libX11 }:
|
2007-04-18 14:21:24 +00:00
|
|
|
|
2018-03-17 16:57:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-07-14 12:23:03 +00:00
|
|
|
name = "glxinfo-${version}";
|
2018-03-17 16:57:15 +00:00
|
|
|
version = "8.3.0";
|
2011-07-14 12:23:03 +00:00
|
|
|
|
2007-04-18 14:21:24 +00:00
|
|
|
src = fetchurl {
|
2018-03-17 16:57:15 +00:00
|
|
|
url = "ftp://ftp.freedesktop.org/pub/mesa/demos/${version}/mesa-demos-${version}.tar.bz2";
|
2016-04-12 16:15:21 +00:00
|
|
|
sha256 = "1vqb7s5m3fcg2csbiz45mha1pys2xx6rhw94fcyvapqdpm5iawy1";
|
2007-04-18 14:21:24 +00:00
|
|
|
};
|
|
|
|
|
2018-03-17 16:57:15 +00:00
|
|
|
buildInputs = [ libX11 libGL ];
|
2007-04-18 14:21:24 +00:00
|
|
|
|
2011-07-14 12:23:03 +00:00
|
|
|
configurePhase = "true";
|
|
|
|
|
2007-04-18 14:21:24 +00:00
|
|
|
buildPhase = "
|
2011-07-14 12:23:03 +00:00
|
|
|
cd src/xdemos
|
2018-03-17 16:57:15 +00:00
|
|
|
$CC glxinfo.c glinfo_common.c -o glxinfo -lGL -lX11
|
|
|
|
$CC glxgears.c -o glxgears -lGL -lX11 -lm
|
2007-04-18 14:21:24 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
installPhase = "
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2011-07-14 12:23:03 +00:00
|
|
|
cp glxinfo glxgears $out/bin/
|
2007-04-18 14:21:24 +00:00
|
|
|
";
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2018-03-17 16:57:15 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Test utilities for OpenGL";
|
|
|
|
homepage = https://www.mesa3d.org/;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2007-04-18 14:21:24 +00:00
|
|
|
}
|