anchor.diff:    ];
   
     postPatch = ''
  -    patchShebangs scripts
  +    patchShebangs scripts tools/perf/pmu-events/jevents.py
     '';
   
     doCheck = false; # requires "sparse"
  
positive.code:     ++ lib.optional withGtk gtk2
      ++ (if (lib.versionAtLeast kernel.version "4.19") then [ python3 ] else [ python2 ])
      ++ lib.optional withZstd zstd
      ++ lib.optional withLibcap libcap;
  
    NIX_CFLAGS_COMPILE = toString [
      "-Wno-error=cpp"
  
negative.code: { lib, stdenv, fetchpatch, kernel, elfutils, python2, python3, python3Packages, perl, newt, slang, asciidoc, xmlto, makeWrapper
  , docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkg-config, libunwind, binutils-unwrapped
  , libiberty, audit, libbfd, libbfd_2_38, libopcodes, libopcodes_2_38, openssl, systemtap, numactl
  , zlib
  