perf: fix build with kernel 6.0

authored by K900 and committed by Alyssa Ross dbf1d73c 0faffb55

+4 -3
+4 -3
pkgs/os-specific/linux/kernel/perf/default.nix
··· 1 - { lib, stdenv, fetchpatch, kernel, elfutils, python2, python3, perl, newt, slang, asciidoc, xmlto, makeWrapper 1 + { lib, stdenv, fetchpatch, kernel, elfutils, python2, python3, python3Packages, perl, newt, slang, asciidoc, xmlto, makeWrapper 2 2 , docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkg-config, libunwind, binutils-unwrapped 3 3 , libiberty, audit, libbfd, libbfd_2_38, libopcodes, libopcodes_2_38, openssl, systemtap, numactl 4 4 , zlib ··· 53 53 ++ lib.optional withGtk gtk2 54 54 ++ (if (lib.versionAtLeast kernel.version "4.19") then [ python3 ] else [ python2 ]) 55 55 ++ lib.optional withZstd zstd 56 - ++ lib.optional withLibcap libcap; 56 + ++ lib.optional withLibcap libcap 57 + ++ lib.optional (lib.versionAtLeast kernel.version "6.0") python3Packages.setuptools; 57 58 58 59 NIX_CFLAGS_COMPILE = toString [ 59 60 "-Wno-error=cpp" ··· 63 64 ]; 64 65 65 66 postPatch = '' 66 - patchShebangs scripts 67 + patchShebangs scripts tools/perf/pmu-events/jevents.py 67 68 ''; 68 69 69 70 doCheck = false; # requires "sparse"