anchor.diff:        export buildRoot="''${buildRoot:-build}"
   
         # Get a basic config file for later refinement with $generateConfig.
  -      make HOSTCC=${buildPackages.stdenv.cc.targetPrefix}gcc -C . O="$buildRoot" $kernelBaseConfig ARCH=$kernelArch
  +      make -C .  O="$buildRoot" $kernelBaseConfig \
  +          ARCH=$kernelArch \
  +          HOSTCC=${buildPackages.stdenv.cc.targetPrefix}gcc \
  +          HOSTCXX=${buildPackages.stdenv.cc.targetPrefix}g++
   
         # Create the config file.
         echo "generating kernel configuration..."
  
positive.code: , perl
  , bison ? null
  , flex ? null
  , stdenv
  
  , # The kernel source tarball.
  
negative.code:     passAsFile = [ "kernelConfig" ];
  
      depsBuildBuild = [ buildPackages.stdenv.cc ];
      nativeBuildInputs = [ perl gmp libmpc mpfr ]
        ++ lib.optionals (stdenv.lib.versionAtLeast version "4.16") [ bison flex ];
  
      platformName = stdenv.hostPlatform.platform.name;
  