2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2022-01-26 04:04:25 +00:00
|
|
|
, fetchpatch
|
2021-12-06 16:07:01 +00:00
|
|
|
, pkg-config
|
|
|
|
, libdrm
|
|
|
|
, libpciaccess
|
|
|
|
, cairo
|
|
|
|
, xorgproto
|
|
|
|
, udev
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXv
|
|
|
|
, libXrandr
|
|
|
|
, glib
|
|
|
|
, bison
|
|
|
|
, libunwind
|
|
|
|
, python3
|
|
|
|
, kmod
|
|
|
|
, procps
|
|
|
|
, utilmacros
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, openssl
|
|
|
|
, peg
|
|
|
|
, elfutils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, valgrind
|
|
|
|
, xmlrpc_c
|
|
|
|
, gsl
|
|
|
|
, alsa-lib
|
|
|
|
, curl
|
|
|
|
, json_c
|
|
|
|
, liboping
|
|
|
|
, flex
|
|
|
|
, docutils
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "intel-gpu-tools";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.26";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://xorg.freedesktop.org/archive/individual/app/igt-gpu-tools-${version}.tar.xz";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "1dwvxh1yplsh1a7h3gpp40g91v12cfxy6yy99s1v9yr2kwxikm1n";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
patches = [
|
|
|
|
# fix build with meson 0.60
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/freedesktop/xorg-intel-gpu-tools/commit/963917a3565466832a3b2fc22e9285d34a0bf944.patch";
|
|
|
|
sha256 = "sha256-goO2N7aK2dJYMhFGS1DlvjEYMSijN6stV6Q5z/RP8Ko=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ pkg-config utilmacros meson ninja flex bison gtk-doc docutils docbook_xsl ];
|
|
|
|
buildInputs = [
|
|
|
|
libdrm
|
|
|
|
libpciaccess
|
|
|
|
cairo
|
|
|
|
xorgproto
|
|
|
|
udev
|
|
|
|
libX11
|
|
|
|
kmod
|
|
|
|
libXext
|
|
|
|
libXv
|
|
|
|
libXrandr
|
|
|
|
glib
|
|
|
|
libunwind
|
|
|
|
python3
|
|
|
|
procps
|
|
|
|
openssl
|
|
|
|
peg
|
|
|
|
elfutils
|
|
|
|
valgrind
|
|
|
|
xmlrpc_c
|
|
|
|
gsl
|
|
|
|
alsa-lib
|
|
|
|
curl
|
|
|
|
json_c
|
|
|
|
liboping
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=array-bounds" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
patchShebangs tests man
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
hardeningDisable = [ "bindnow" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|