lol
at v192 36 lines 1.1 kB view raw
1{ stdenv, fetchurl, pkgconfig, libjpeg, libpng12, xlibs, libX11, mesa, libdrm, python27 }: 2stdenv.mkDerivation rec { 3 name = "glmark2-${version}"; 4 version = "2014.03"; 5 6 src = fetchurl { 7 url = "https://launchpad.net/glmark2/trunk/${version}/+download/${name}.tar.gz"; 8 sha256 = "1dgn7ln115ivk13d1yagpj06lgllpv2jrr41kcnhdkhqz6m43vdx"; 9 }; 10 11 buildInputs = [ 12 pkgconfig libjpeg libpng12 xlibs.libxcb libX11 mesa libdrm python27 13 ]; 14 15 buildPhase = '' 16 python ./waf configure --prefix=$out --with-flavors x11-gl,x11-glesv2 17 python2 ./waf 18 ''; 19 20 installPhase = '' 21 python2 ./waf install --destdir="$pkgdir/" 22 ''; 23 24 meta = with stdenv.lib; { 25 description = "OpenGL (ES) 2.0 benchmark"; 26 homepage = https://launchpad.net/glmark2; 27 license = licenses.gpl3Plus; 28 longDescription = '' 29 glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of 30 the OpenGL 2.0 API that is compatible with OpenGL ES 2.0. 31 ''; 32 platforms = platforms.linux; 33 maintainers = [ maintainers.wmertens ]; 34 }; 35} 36