2016-07-09 13:50:24 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, mesa, libdrm, python27, wayland }:
|
|
|
|
|
2014-07-12 09:04:28 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "glmark2-${version}";
|
2016-07-09 13:50:24 +01:00
|
|
|
version = "2015-06-11";
|
2014-07-12 09:04:28 +01:00
|
|
|
|
2016-07-09 13:50:24 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "glmark2";
|
|
|
|
repo = "glmark2";
|
|
|
|
rev = "fa71af2dfab711fac87b9504b6fc9862f44bf72a";
|
|
|
|
sha256 = "1razwrmwk94wf8y7rnqpas9520gidixzcwa65pg946n823105znw";
|
2014-07-12 09:04:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-07-09 13:50:24 +01:00
|
|
|
pkgconfig libjpeg libpng xorg.libxcb libX11 mesa libdrm python27 wayland
|
2014-07-12 09:04:28 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2016-07-09 13:50:24 +01:00
|
|
|
python ./waf configure --prefix=$out --with-flavors x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2
|
2014-07-12 09:04:28 +01:00
|
|
|
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";
|
2016-07-09 13:50:24 +01:00
|
|
|
homepage = https://github.com/glmark2/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
|
|
|
};
|
|
|
|
}
|