about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/graphics/glmark2/default.nix
blob: 806b03061c745634df863b613fd56b598c427bf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv, fetchFromGitHub, pkg-config, libjpeg, libpng, xorg, libX11, libGL, libdrm,
  python27, wayland, udev, mesa, wafHook }:

stdenv.mkDerivation {
  pname = "glmark2";
  version = "2017-09-01";

  src = fetchFromGitHub {
    owner = "glmark2";
    repo = "glmark2";
    rev = "7265e8e6c77c4f60302507eca0e18560b1117a86";
    sha256 = "076l75rfl6pnp1wgiwlaihy1vg2advg1z8bi0x84kk259kldgvwn";
  };

  nativeBuildInputs = [ pkg-config wafHook ];
  buildInputs = [
    libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa
  ];

  wafConfigureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"];

  meta = with lib; {
    description = "OpenGL (ES) 2.0 benchmark";
    homepage = "https://github.com/glmark2/glmark2";
    license = licenses.gpl3Plus;
    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.
    '';
    platforms = platforms.linux;
    maintainers = [ maintainers.wmertens ];
  };
}