44 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, libdrm, libpciaccess, cairo, xorgproto, udev
2016-12-11 17:55:09 +01:00
, libX11, libXext, libXv, libXrandr, glib, bison, libunwind, python3, kmod
, procps, utilmacros, gtk-doc, openssl, peg, elfutils
}:
2014-08-04 01:21:59 -05:00
stdenv.mkDerivation rec {
pname = "intel-gpu-tools";
version = "1.24";
2014-08-04 01:21:59 -05:00
src = fetchurl {
2018-08-14 22:14:55 +02:00
url = "https://xorg.freedesktop.org/archive/individual/app/igt-gpu-tools-${version}.tar.xz";
sha256 = "1gr1m18w73hmh6n9w2f6gky21qc0pls14bgxkhy95z7azrr7qdap";
2014-08-04 01:21:59 -05:00
};
2018-02-26 16:03:48 +01:00
nativeBuildInputs = [ pkgconfig utilmacros ];
buildInputs = [ libdrm libpciaccess cairo xorgproto udev libX11 kmod
2018-02-26 16:03:48 +01:00
libXext libXv libXrandr glib bison libunwind python3 procps
gtk-doc openssl peg elfutils ];
2018-02-26 16:03:48 +01:00
2019-11-03 13:27:43 +01:00
NIX_CFLAGS_COMPILE = [ "-Wno-error=array-bounds" ];
2018-02-26 16:03:48 +01:00
preConfigure = ''
./autogen.sh
'';
2016-03-17 21:45:26 +01:00
preBuild = ''
2018-08-08 21:12:32 +00:00
patchShebangs tests
2016-03-17 21:45:26 +01:00
patchShebangs debugger/system_routine/pre_cpp.py
substituteInPlace tools/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
2018-02-26 16:03:48 +01:00
substituteInPlace tests/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
2016-03-17 21:45:26 +01:00
'';
enableParallelBuilding = true;
2014-08-04 01:21:59 -05:00
meta = with stdenv.lib; {
homepage = https://01.org/linuxgraphics/;
description = "Tools for development and testing of the Intel DRM driver";
license = licenses.mit;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [ pSub ];
2014-08-04 01:21:59 -05:00
};
}