20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
28 sha256 = "sha256-WCvc5GqrAdpIKQ4LVqwO6ZGbzBgLCl49NxiGJynIjSQ=";
31 depsBuildBuild = [ pkg-config ];
32 nativeBuildInputs = [ pkg-config makeWrapper meson ninja wayland-scanner ];
44 mesonFlags = [ "-Dflavors=drm-gl,drm-glesv2,gbm-gl,gbm-glesv2,wayland-gl,wayland-glesv2,x11-gl,x11-gl-egl,x11-glesv2" ];
47 for binary in $out/bin/glmark2*; do
49 --set LD_LIBRARY_PATH ${libGL}/lib
54 description = "OpenGL (ES) 2.0 benchmark";
55 homepage = "https://github.com/glmark2/glmark2";
56 license = licenses.gpl3Plus;
58 glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of
59 the OpenGL 2.0 API that is compatible with OpenGL ES 2.0.
61 platforms = platforms.linux;
62 maintainers = [ maintainers.wmertens ];