nixpkgs/pkgs/development/tools/misc/intel-gpu-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

119 lines
1.9 KiB
Nix
Raw Normal View History

2021-08-27 16:05:23 +00:00
{ lib
, stdenv
, fetchFromGitLab
, fetchpatch
# build time
, bison
, docbook_xsl
, docutils
, flex
, gtk-doc
, meson
, ninja
2021-08-27 16:05:23 +00:00
, pkg-config
, utilmacros
# runtime
, alsa-lib
, cairo
, curl
, elfutils
, glib
, gsl
, json_c
, kmod
2021-08-27 16:05:23 +00:00
, libdrm
, liboping
2021-08-27 16:05:23 +00:00
, libpciaccess
, libunwind
2021-08-27 16:05:23 +00:00
, libX11
, libXext
, libXrandr
, libXv
2021-08-27 16:05:23 +00:00
, openssl
, peg
, procps
, python3
, udev
2021-08-27 16:05:23 +00:00
, valgrind
, xmlrpc_c
, xorgproto
}:
2014-08-04 06:21:59 +00:00
stdenv.mkDerivation rec {
pname = "intel-gpu-tools";
version = "1.27.1";
2014-08-04 06:21:59 +00:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "drm";
repo = "igt-gpu-tools";
rev = "refs/tags/v${version}";
hash = "sha256-7Z9Y7uUjtjdQbB+xV/fvO18xB18VV7fBZqw1fI7U0jQ=";
2014-08-04 06:21:59 +00:00
};
patches = [
# fixes pkgsMusl.intel-gpu-tools
# https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138
(fetchpatch {
url = "https://raw.githubusercontent.com/void-linux/void-packages/111918317d06598fe1459dbe139923404f3f4b9d/srcpkgs/igt-gpu-tools/patches/musl.patch";
hash = "sha256-cvtwZg7js7O/Ww7puBTfVzLRji2bHTyV91+PvpH8qrg=";
})
];
nativeBuildInputs = [
bison
docbook_xsl
docutils
flex
gtk-doc
meson
ninja
pkg-config
utilmacros
];
2021-08-27 16:05:23 +00:00
buildInputs = [
alsa-lib
cairo
curl
elfutils
glib
gsl
json_c
kmod
2021-08-27 16:05:23 +00:00
libdrm
liboping
2021-08-27 16:05:23 +00:00
libpciaccess
libunwind
2021-08-27 16:05:23 +00:00
libX11
libXext
libXrandr
libXv
2021-08-27 16:05:23 +00:00
openssl
peg
procps
python3
udev
2021-08-27 16:05:23 +00:00
valgrind
xmlrpc_c
xorgproto
2021-08-27 16:05:23 +00:00
];
2018-02-26 15:03:48 +00:00
preConfigure = ''
2021-08-27 16:05:23 +00:00
patchShebangs tests man
2018-02-26 15:03:48 +00:00
'';
2016-03-17 20:45:26 +00:00
2021-08-27 16:05:23 +00:00
hardeningDisable = [ "bindnow" ];
meta = with lib; {
changelog = "https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/v${version}/NEWS";
homepage = "https://drm.pages.freedesktop.org/igt-gpu-tools/";
2014-08-04 06:21:59 +00:00
description = "Tools for development and testing of the Intel DRM driver";
license = licenses.mit;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [ pSub ];
2014-08-04 06:21:59 +00:00
};
}