2015-06-14 19:23:37 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libdrm, libpciaccess, cairo, dri2proto, udev
|
2016-12-11 16:55:09 +00:00
|
|
|
, libX11, libXext, libXv, libXrandr, glib, bison, libunwind, python3, kmod
|
2018-02-26 15:03:48 +00:00
|
|
|
, procps, autoreconfHook, utilmacros, gnome2 }:
|
2014-08-04 06:21:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-14 20:39:01 +00:00
|
|
|
name = "intel-gpu-tools-1.22";
|
2014-08-04 06:21:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-02-26 15:03:48 +00:00
|
|
|
url = "http://xorg.freedesktop.org/archive/individual/app/${name}.tar.xz";
|
2018-03-14 20:39:01 +00:00
|
|
|
sha256 = "0p4swf9577p6hzglw1lh2sz63wjkk37b7691saj2qw8ha7fc2rix";
|
2014-08-04 06:21:59 +00:00
|
|
|
};
|
|
|
|
|
2018-02-26 15:03:48 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig utilmacros ];
|
2016-12-11 16:55:09 +00:00
|
|
|
buildInputs = [ libdrm libpciaccess cairo dri2proto udev libX11 kmod
|
2018-02-26 15:03:48 +00:00
|
|
|
libXext libXv libXrandr glib bison libunwind python3 procps
|
|
|
|
gnome2.gtkdoc ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
2016-03-17 20:45:26 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
patchShebangs debugger/system_routine/pre_cpp.py
|
2017-04-15 09:32:46 +00: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 20:44:51 +00:00
|
|
|
|
2014-08-04 06:21:59 +00: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 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 06:21:59 +00:00
|
|
|
};
|
|
|
|
}
|