2018-03-28 15:25:00 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, libGL, libdrm,
|
2018-11-11 22:20:41 +01:00
|
|
|
python27, wayland, udev, mesa_noglu, wafHook }:
|
2016-07-09 14:50:24 +02:00
|
|
|
|
2014-07-12 10:04:28 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "glmark2-${version}";
|
2017-09-02 04:01:24 +02:00
|
|
|
version = "2017-09-01";
|
2014-07-12 10:04:28 +02:00
|
|
|
|
2016-07-09 14:50:24 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "glmark2";
|
|
|
|
repo = "glmark2";
|
2017-09-02 04:01:24 +02:00
|
|
|
rev = "7265e8e6c77c4f60302507eca0e18560b1117a86";
|
|
|
|
sha256 = "076l75rfl6pnp1wgiwlaihy1vg2advg1z8bi0x84kk259kldgvwn";
|
2014-07-12 10:04:28 +02:00
|
|
|
};
|
|
|
|
|
2018-11-11 22:20:41 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
2014-07-12 10:04:28 +02:00
|
|
|
buildInputs = [
|
2018-07-17 22:11:16 +02:00
|
|
|
libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa_noglu
|
2014-07-12 10:04:28 +02:00
|
|
|
];
|
|
|
|
|
2018-11-11 22:20:41 +01:00
|
|
|
configureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"];
|
2014-07-12 10:04:28 +02:00
|
|
|
|
2014-08-12 20:58:36 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-12 10:04:28 +02:00
|
|
|
description = "OpenGL (ES) 2.0 benchmark";
|
2016-07-09 14:50:24 +02:00
|
|
|
homepage = https://github.com/glmark2/glmark2;
|
2014-08-12 20:58:36 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2014-07-12 10:04:28 +02: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 20:58:36 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.wmertens ];
|
2014-07-12 10:04:28 +02:00
|
|
|
};
|
|
|
|
}
|