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