nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 100 lines 1.7 kB view raw
1{ lib 2, stdenv 3, fetchurl 4, fetchpatch 5, pkg-config 6, libdrm 7, libpciaccess 8, cairo 9, xorgproto 10, udev 11, libX11 12, libXext 13, libXv 14, libXrandr 15, glib 16, bison 17, libunwind 18, python3 19, kmod 20, procps 21, utilmacros 22, gtk-doc 23, docbook_xsl 24, openssl 25, peg 26, elfutils 27, meson 28, ninja 29, valgrind 30, xmlrpc_c 31, gsl 32, alsa-lib 33, curl 34, json_c 35, liboping 36, flex 37, docutils 38}: 39 40stdenv.mkDerivation rec { 41 pname = "intel-gpu-tools"; 42 version = "1.26"; 43 44 src = fetchurl { 45 url = "https://xorg.freedesktop.org/archive/individual/app/igt-gpu-tools-${version}.tar.xz"; 46 sha256 = "1dwvxh1yplsh1a7h3gpp40g91v12cfxy6yy99s1v9yr2kwxikm1n"; 47 }; 48 49 patches = [ 50 # fix build with meson 0.60 51 (fetchpatch { 52 url = "https://github.com/freedesktop/xorg-intel-gpu-tools/commit/963917a3565466832a3b2fc22e9285d34a0bf944.patch"; 53 sha256 = "sha256-goO2N7aK2dJYMhFGS1DlvjEYMSijN6stV6Q5z/RP8Ko="; 54 }) 55 ]; 56 57 nativeBuildInputs = [ pkg-config utilmacros meson ninja flex bison gtk-doc docutils docbook_xsl ]; 58 buildInputs = [ 59 libdrm 60 libpciaccess 61 cairo 62 xorgproto 63 udev 64 libX11 65 kmod 66 libXext 67 libXv 68 libXrandr 69 glib 70 libunwind 71 python3 72 procps 73 openssl 74 peg 75 elfutils 76 valgrind 77 xmlrpc_c 78 gsl 79 alsa-lib 80 curl 81 json_c 82 liboping 83 ]; 84 85 NIX_CFLAGS_COMPILE = [ "-Wno-error=array-bounds" ]; 86 87 preConfigure = '' 88 patchShebangs tests man 89 ''; 90 91 hardeningDisable = [ "bindnow" ]; 92 93 meta = with lib; { 94 homepage = "https://01.org/linuxgraphics/"; 95 description = "Tools for development and testing of the Intel DRM driver"; 96 license = licenses.mit; 97 platforms = [ "x86_64-linux" "i686-linux" ]; 98 maintainers = with maintainers; [ pSub ]; 99 }; 100}