Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 35 lines 1.2 kB view raw
1{ stdenv, fetchurl, pkgconfig, libdrm, libpciaccess, cairo, dri2proto, udev 2, libX11, libXext, libXv, libXrandr, glib, bison, libunwind, python3, kmod 3, procps, autoreconfHook, utilmacros, gnome2 }: 4 5stdenv.mkDerivation rec { 6 name = "intel-gpu-tools-1.21"; 7 8 src = fetchurl { 9 url = "http://xorg.freedesktop.org/archive/individual/app/${name}.tar.xz"; 10 sha256 = "0gvh317dg5c7kvjxxkh8g70hh3r3dc73mc4dzyvfa8nb4ix6xbyr"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig utilmacros ]; 14 buildInputs = [ libdrm libpciaccess cairo dri2proto udev libX11 kmod 15 libXext libXv libXrandr glib bison libunwind python3 procps 16 gnome2.gtkdoc ]; 17 18 preConfigure = '' 19 ./autogen.sh 20 ''; 21 22 preBuild = '' 23 patchShebangs debugger/system_routine/pre_cpp.py 24 substituteInPlace tools/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)' 25 substituteInPlace tests/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)' 26 ''; 27 28 meta = with stdenv.lib; { 29 homepage = https://01.org/linuxgraphics/; 30 description = "Tools for development and testing of the Intel DRM driver"; 31 license = licenses.mit; 32 platforms = [ "x86_64-linux" "i686-linux" ]; 33 maintainers = with maintainers; [ pSub ]; 34 }; 35}