Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 6 # build time 7 bison, 8 docbook_xsl, 9 docutils, 10 flex, 11 gtk-doc, 12 meson, 13 ninja, 14 pkg-config, 15 utilmacros, 16 17 # runtime 18 alsa-lib, 19 cairo, 20 curl, 21 elfutils, 22 glib, 23 gsl, 24 json_c, 25 kmod, 26 libdrm, 27 liboping, 28 libpciaccess, 29 libunwind, 30 libX11, 31 libXext, 32 libXrandr, 33 libXv, 34 openssl, 35 peg, 36 procps, 37 python3, 38 udev, 39 valgrind, 40 xmlrpc_c, 41 xorgproto, 42}: 43 44stdenv.mkDerivation rec { 45 pname = "intel-gpu-tools"; 46 version = "2.1"; 47 48 src = fetchFromGitLab { 49 domain = "gitlab.freedesktop.org"; 50 owner = "drm"; 51 repo = "igt-gpu-tools"; 52 rev = "refs/tags/v${version}"; 53 hash = "sha256-O//tL7AuYmrpTlZ61YzpSKOxbtM6u6zlcANzXWTTbhw="; 54 }; 55 56 nativeBuildInputs = [ 57 bison 58 docbook_xsl 59 docutils 60 flex 61 gtk-doc 62 meson 63 ninja 64 pkg-config 65 utilmacros 66 ]; 67 68 buildInputs = [ 69 alsa-lib 70 cairo 71 curl 72 elfutils 73 glib 74 gsl 75 json_c 76 kmod 77 libdrm 78 liboping 79 libpciaccess 80 libunwind 81 libX11 82 libXext 83 libXrandr 84 libXv 85 openssl 86 peg 87 procps 88 python3 89 udev 90 valgrind 91 xmlrpc_c 92 xorgproto 93 ]; 94 95 preConfigure = '' 96 patchShebangs lib man scripts tests 97 ''; 98 99 hardeningDisable = [ "bindnow" ]; 100 101 meta = { 102 changelog = "https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/v${version}/NEWS"; 103 homepage = "https://drm.pages.freedesktop.org/igt-gpu-tools/"; 104 description = "Tools for development and testing of the Intel DRM driver"; 105 license = lib.licenses.mit; 106 platforms = [ 107 "x86_64-linux" 108 "i686-linux" 109 ]; 110 maintainers = with lib.maintainers; [ pSub ]; 111 }; 112}