Merge #3248: add glmark2-2014.03
This commit is contained in:
commit
a3d33de16a
2 changed files with 37 additions and 0 deletions
35
pkgs/tools/graphics/glmark2/default.nix
Normal file
35
pkgs/tools/graphics/glmark2/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ 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.
|
||||
'';
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = stdenv.lib.maintainers.wmertens;
|
||||
};
|
||||
}
|
|
@ -1119,6 +1119,8 @@ let
|
|||
|
||||
glusterfs = callPackage ../tools/filesystems/glusterfs { };
|
||||
|
||||
glmark2 = callPackage ../tools/graphics/glmark2 { };
|
||||
|
||||
glxinfo = callPackage ../tools/graphics/glxinfo { };
|
||||
|
||||
gmvault = callPackage ../tools/networking/gmvault { };
|
||||
|
|
Loading…
Reference in a new issue