forked from mirrors/nixpkgs
44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ stdenv, fetchurl, pkgconfig, libdrm, libpciaccess, cairo, xorgproto, udev
|
|
, libX11, libXext, libXv, libXrandr, glib, bison, libunwind, python3, kmod
|
|
, procps, utilmacros, gtk-doc, openssl, peg, elfutils
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "intel-gpu-tools";
|
|
version = "1.24";
|
|
|
|
src = fetchurl {
|
|
url = "https://xorg.freedesktop.org/archive/individual/app/igt-gpu-tools-${version}.tar.xz";
|
|
sha256 = "1gr1m18w73hmh6n9w2f6gky21qc0pls14bgxkhy95z7azrr7qdap";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig utilmacros ];
|
|
buildInputs = [ libdrm libpciaccess cairo xorgproto udev libX11 kmod
|
|
libXext libXv libXrandr glib bison libunwind python3 procps
|
|
gtk-doc openssl peg elfutils ];
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=array-bounds" ];
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
preBuild = ''
|
|
patchShebangs tests
|
|
|
|
patchShebangs debugger/system_routine/pre_cpp.py
|
|
substituteInPlace tools/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
|
|
substituteInPlace tests/Makefile.am --replace '$(CAIRO_CFLAGS)' '$(CAIRO_CFLAGS) $(GLIB_CFLAGS)'
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|