nixpkgs/pkgs/by-name/in/intel-gpu-tools/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

118 lines
1.8 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, fetchpatch
# build time
, bison
, docbook_xsl
, docutils
, flex
, gtk-doc
, meson
, ninja
, pkg-config
, utilmacros
# runtime
, alsa-lib
, cairo
, curl
, elfutils
, glib
, gsl
, json_c
, kmod
, libdrm
, liboping
, libpciaccess
, libunwind
, libX11
, libXext
, libXrandr
, libXv
, openssl
, peg
, procps
, python3
, udev
, valgrind
, xmlrpc_c
, xorgproto
}:
stdenv.mkDerivation rec {
pname = "intel-gpu-tools";
version = "1.29";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "drm";
repo = "igt-gpu-tools";
rev = "refs/tags/v${version}";
hash = "sha256-t6DeFmIgTomMNwE53n5JicnvuCd/QfpNYWCdwPwc30E=";
};
patches = [
(fetchpatch {
name = "basename.patch";
url = "https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/604dec781ef283885f65968358bd9ae88c5193c3.patch";
hash = "sha256-zU6U9uuTDvuADVYmT9sMYA85Xgtvqgy378LvWFDVEJw=";
})
];
nativeBuildInputs = [
bison
docbook_xsl
docutils
flex
gtk-doc
meson
ninja
pkg-config
utilmacros
];
buildInputs = [
alsa-lib
cairo
curl
elfutils
glib
gsl
json_c
kmod
libdrm
liboping
libpciaccess
libunwind
libX11
libXext
libXrandr
libXv
openssl
peg
procps
python3
udev
valgrind
xmlrpc_c
xorgproto
];
preConfigure = ''
patchShebangs lib man scripts tests
'';
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/";
description = "Tools for development and testing of the Intel DRM driver";
license = licenses.mit;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [ pSub ];
};
}