2015-06-14 12:23:37 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libdrm, libpciaccess, cairo, dri2proto, udev
|
2016-12-11 08:55:09 -08:00
|
|
|
, libX11, libXext, libXv, libXrandr, glib, bison, libunwind, python3, kmod
|
2018-08-14 13:14:55 -07:00
|
|
|
, procps, utilmacros, gnome2, openssl }:
|
2014-08-03 23:21:59 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-14 13:14:55 -07:00
|
|
|
name = "intel-gpu-tools-${version}";
|
|
|
|
version = "1.23";
|
2014-08-03 23:21:59 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-08-14 13:14:55 -07:00
|
|
|
url = "https://xorg.freedesktop.org/archive/individual/app/igt-gpu-tools-${version}.tar.xz";
|
|
|
|
sha256 = "1l4s95m013p2wvddwr4cjqyvsgmc88zxx2887p1fbb1va5n0hjsd";
|
2014-08-03 23:21:59 -07:00
|
|
|
};
|
|
|
|
|
2018-02-26 07:03:48 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig utilmacros ];
|
2016-12-11 08:55:09 -08:00
|
|
|
buildInputs = [ libdrm libpciaccess cairo dri2proto udev libX11 kmod
|
2018-02-26 07:03:48 -08:00
|
|
|
libXext libXv libXrandr glib bison libunwind python3 procps
|
2018-08-14 13:14:55 -07:00
|
|
|
gnome2.gtkdoc openssl ];
|
2018-02-26 07:03:48 -08:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
2016-03-17 13:45:26 -07:00
|
|
|
|
|
|
|
preBuild = ''
|
2018-08-08 14:12:32 -07:00
|
|
|
patchShebangs tests
|
|
|
|
|
2016-03-17 13:45:26 -07:00
|
|
|
patchShebangs debugger/system_routine/pre_cpp.py
|
2017-04-15 02:32:46 -07:00
|
|
|
substituteInPlace tools/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
|
2018-02-26 07:03:48 -08:00
|
|
|
substituteInPlace tests/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
|
2016-03-17 13:45:26 -07:00
|
|
|
'';
|
2015-05-15 13:44:51 -07:00
|
|
|
|
2018-03-18 17:00:34 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-08-03 23:21:59 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://01.org/linuxgraphics/;
|
|
|
|
description = "Tools for development and testing of the Intel DRM driver";
|
|
|
|
license = licenses.mit;
|
2017-12-03 09:43:51 -08:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2014-12-14 14:34:38 -08:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2014-08-03 23:21:59 -07:00
|
|
|
};
|
|
|
|
}
|