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

34 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, libjpeg, libpng, xorg, libX11, libGL, libdrm,
python27, wayland, udev, mesa, wafHook }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "glmark2";
2017-09-02 02:01:24 +00:00
version = "2017-09-01";
2014-07-12 08:04:28 +00:00
src = fetchFromGitHub {
owner = "glmark2";
repo = "glmark2";
2017-09-02 02:01:24 +00:00
rev = "7265e8e6c77c4f60302507eca0e18560b1117a86";
sha256 = "076l75rfl6pnp1wgiwlaihy1vg2advg1z8bi0x84kk259kldgvwn";
2014-07-12 08:04:28 +00:00
};
nativeBuildInputs = [ pkg-config wafHook ];
2014-07-12 08:04:28 +00:00
buildInputs = [
libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa
2014-07-12 08:04:28 +00:00
];
wafConfigureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"];
2014-07-12 08:04:28 +00:00
meta = with lib; {
2014-07-12 08:04:28 +00:00
description = "OpenGL (ES) 2.0 benchmark";
homepage = "https://github.com/glmark2/glmark2";
2014-08-12 18:58:36 +00:00
license = licenses.gpl3Plus;
2014-07-12 08:04:28 +00: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 18:58:36 +00:00
platforms = platforms.linux;
maintainers = [ maintainers.wmertens ];
2014-07-12 08:04:28 +00:00
};
}