anchor.diff:  
         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)
  
positive.code:         fi
  
          patchShebangs scripts
        '';
  
        configurePhase = ''
  
negative.code:         ++ optional (lib.versionAtLeast version "5.2" && lib.versionOlder version "5.4") ./gen-kheaders-metadata.patch;
  
        prePatch = ''
          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.
  