2021-06-06 19:23:23 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, makeWrapper
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, xorg
|
|
|
|
, libX11
|
|
|
|
, libGL
|
|
|
|
, libdrm
|
|
|
|
, udev
|
|
|
|
, python3
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, mesa
|
|
|
|
, wafHook
|
|
|
|
}:
|
2016-07-09 14:50:24 +02:00
|
|
|
|
2021-06-06 19:23:23 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "glmark2";
|
2021-06-06 19:23:23 +02:00
|
|
|
version = "2021.02";
|
2014-07-12 10:04:28 +02:00
|
|
|
|
2016-07-09 14:50:24 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "glmark2";
|
|
|
|
repo = "glmark2";
|
2021-06-06 19:23:23 +02:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1a75gg1dn03d3jq7n74wsw7kc14ildbb8azzbj4k28xik1m6khr9";
|
2014-07-12 10:04:28 +02:00
|
|
|
};
|
|
|
|
|
2021-06-06 19:23:23 +02:00
|
|
|
nativeBuildInputs = [ pkg-config wafHook makeWrapper ];
|
2014-07-12 10:04:28 +02:00
|
|
|
buildInputs = [
|
2021-06-06 19:23:23 +02:00
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
xorg.libxcb
|
|
|
|
libX11
|
|
|
|
libdrm
|
|
|
|
python3
|
|
|
|
udev
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
mesa
|
2014-07-12 10:04:28 +02:00
|
|
|
];
|
|
|
|
|
2021-06-06 19:23:23 +02:00
|
|
|
wafConfigureFlags = [ "--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for binary in $out/bin/glmark2*; do
|
|
|
|
wrapProgram $binary \
|
|
|
|
--set LD_LIBRARY_PATH ${libGL}/lib
|
|
|
|
done
|
|
|
|
'';
|
2014-07-12 10:04:28 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-07-12 10:04:28 +02:00
|
|
|
description = "OpenGL (ES) 2.0 benchmark";
|
2020-04-01 03:11:51 +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
|
|
|
};
|
|
|
|
}
|