nixpkgs/pkgs/tools/graphics/glmark2/default.nix
Matthew Bauer f2a20b6e52 treewide: use wafHook
Replace "waf" phases with wafHook that manages everything
automatically. Should make things more modular.

Packages affected here are:

- a2jmidid
- ams-lv2
- ardour
- fomp
- guitarix
- ingen
- jalv
- mda-lv2
- non
- patchage
- hamster-time-tracker
- kupfer
- xiphos
- xfce4-dockbarx-plugin
- xfce4-namebar-plugin
- dropbox
- clasp
- aubio
- liliv
- lv2
- lvtk
- ntk
- raul
- sratom
- suil
- ganv
- ndn-cxx
- ns3
- serd
- sord
- termbox
- wxmupen64plus
- jackaudio
- pflask
- blockhash
- glmark2
- weighttp
2018-11-13 19:13:48 -06:00

33 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, libGL, libdrm,
python27, wayland, udev, mesa_noglu, wafHook }:
stdenv.mkDerivation rec {
name = "glmark2-${version}";
version = "2017-09-01";
src = fetchFromGitHub {
owner = "glmark2";
repo = "glmark2";
rev = "7265e8e6c77c4f60302507eca0e18560b1117a86";
sha256 = "076l75rfl6pnp1wgiwlaihy1vg2advg1z8bi0x84kk259kldgvwn";
};
nativeBuildInputs = [ pkgconfig wafHook ];
buildInputs = [
libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa_noglu
];
configureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"];
meta = with stdenv.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 ];
};
}