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