1{ stdenv, fetchurl, pkgconfig, libdrm, libpciaccess, cairo, xorgproto, udev
2, libX11, libXext, libXv, libXrandr, glib, bison, libunwind, python3, kmod
3, procps, utilmacros, gnome2, openssl, peg }:
4
5stdenv.mkDerivation rec {
6 name = "intel-gpu-tools-${version}";
7 version = "1.23";
8
9 src = fetchurl {
10 url = "https://xorg.freedesktop.org/archive/individual/app/igt-gpu-tools-${version}.tar.xz";
11 sha256 = "1l4s95m013p2wvddwr4cjqyvsgmc88zxx2887p1fbb1va5n0hjsd";
12 };
13
14 nativeBuildInputs = [ pkgconfig utilmacros ];
15 buildInputs = [ libdrm libpciaccess cairo xorgproto udev libX11 kmod
16 libXext libXv libXrandr glib bison libunwind python3 procps
17 gnome2.gtkdoc openssl peg ];
18
19 preConfigure = ''
20 ./autogen.sh
21 '';
22
23 preBuild = ''
24 patchShebangs tests
25
26 patchShebangs debugger/system_routine/pre_cpp.py
27 substituteInPlace tools/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
28 substituteInPlace tests/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
29 '';
30
31 enableParallelBuilding = true;
32
33 meta = with stdenv.lib; {
34 homepage = https://01.org/linuxgraphics/;
35 description = "Tools for development and testing of the Intel DRM driver";
36 license = licenses.mit;
37 platforms = [ "x86_64-linux" "i686-linux" ];
38 maintainers = with maintainers; [ pSub ];
39 };
40}