diff options
author | Wout Mertens <Wout.Mertens@gmail.com> | 2014-07-12 10:04:28 +0200 |
---|---|---|
committer | Wout Mertens <Wout.Mertens@gmail.com> | 2014-07-12 10:04:28 +0200 |
commit | ce81993a6ba1b512001064f5f193e6ffc68a5ba3 (patch) | |
tree | 0a2464383e578a97f30e6e7159efcf9493780912 /pkgs/tools/graphics | |
parent | 7e2012487584831e467019d99a111bfe0e78916a (diff) | |
download | nixlib-ce81993a6ba1b512001064f5f193e6ffc68a5ba3.tar nixlib-ce81993a6ba1b512001064f5f193e6ffc68a5ba3.tar.gz nixlib-ce81993a6ba1b512001064f5f193e6ffc68a5ba3.tar.bz2 nixlib-ce81993a6ba1b512001064f5f193e6ffc68a5ba3.tar.lz nixlib-ce81993a6ba1b512001064f5f193e6ffc68a5ba3.tar.xz nixlib-ce81993a6ba1b512001064f5f193e6ffc68a5ba3.tar.zst nixlib-ce81993a6ba1b512001064f5f193e6ffc68a5ba3.zip |
glmark2: Add glmark2 2014.03
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/glmark2/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/glmark2/default.nix b/pkgs/tools/graphics/glmark2/default.nix new file mode 100644 index 000000000000..54a65d21ed93 --- /dev/null +++ b/pkgs/tools/graphics/glmark2/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, pkgconfig, libjpeg, libpng12, xlibs, libX11, mesa, libdrm, python27 }: +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 xlibs.libxcb libX11 mesa libdrm python27 + ]; + + buildPhase = '' + python ./waf configure --prefix=$out --with-flavors x11-gl,x11-glesv2 + python2 ./waf + ''; + + installPhase = '' + python2 ./waf install --destdir="$pkgdir/" + ''; + + meta = { + description = "OpenGL (ES) 2.0 benchmark"; + homepage = https://launchpad.net/glmark2; + license = "GPLv3+"; + 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. + ''; + }; +} |