nixpkgs/pkgs/tools/graphics/glmark2/default.nix

37 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, libjpeg, libpng12, xorg, libX11, mesa, libdrm, python27 }:
2014-07-12 09:04:28 +01:00
stdenv.mkDerivation rec {
name = "glmark2-${version}";
version = "2014.03";
src = fetchurl {
url = "https://launchpad.net/glmark2/trunk/${version}/+download/${name}.tar.gz";
sha256 = "1dgn7ln115ivk13d1yagpj06lgllpv2jrr41kcnhdkhqz6m43vdx";
};
buildInputs = [
pkgconfig libjpeg libpng12 xorg.libxcb libX11 mesa libdrm python27
2014-07-12 09:04:28 +01:00
];
buildPhase = ''
python ./waf configure --prefix=$out --with-flavors x11-gl,x11-glesv2
python2 ./waf
'';
installPhase = ''
python2 ./waf install --destdir="$pkgdir/"
'';
2014-08-12 19:58:36 +01:00
meta = with stdenv.lib; {
2014-07-12 09:04:28 +01:00
description = "OpenGL (ES) 2.0 benchmark";
homepage = https://launchpad.net/glmark2;
2014-08-12 19:58:36 +01:00
license = licenses.gpl3Plus;
2014-07-12 09:04:28 +01:00
longDescription = ''
glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of
the OpenGL 2.0 API that is compatible with OpenGL ES 2.0.
'';
2014-08-12 19:58:36 +01:00
platforms = platforms.linux;
maintainers = [ maintainers.wmertens ];
2014-07-12 09:04:28 +01:00
};
}
2014-08-12 19:58:36 +01:00