anchor.diff:          ++ optional (lib.versionAtLeast version "5.2" && lib.versionOlder version "5.4") ./gen-kheaders-metadata.patch;
   
         prePatch = ''
  -        for mf in $(find -name Makefile -o -name Makefile.include -o -name install.sh); do
  -            echo "stripping FHS paths in \`$mf'..."
  -            sed -i "$mf" -e 's|/usr/bin/||g ; s|/bin/||g ; s|/sbin/||g'
  -        done
           sed -i Makefile -e 's|= depmod|= ${buildPackages.kmod}/bin/depmod|'
   
           # Don't include a (random) NT_GNU_BUILD_ID, to make the build more deterministic.
  
positive.code:         fi
  
          patchShebangs scripts
        '';
  
        configurePhase = ''
  
negative.code: 
        preInstall = ''
          installFlagsArray+=("-j$NIX_BUILD_CORES")
  
          # the install scripts expect to find installkernel in ~/bin/installkernel
          export HOME=${installkernel}
        '';
  
        # Some image types need special install targets (e.g. uImage is installed with make uinstall)
  