anchor.diff:      dontInstall = doCoverageAnalysis;
   
       showBuildStats = true;
  -
  -    postPhases =
  -      (stdenv.lib.optional doCoverageAnalysis "coverageReportPhase") ++ ["finalPhase"];
   
       finalPhase =
         ''
  
positive.code: , src, stdenv
  , name ? if doCoverageAnalysis then "nix-coverage" else "nix-build"
  , failureHook ? null
  , ... } @ args:
  
  stdenv.mkDerivation (
  
negative.code: 
      inherit lcovExtraTraceFiles;
  
      postPhases = postPhases ++
        (stdenv.lib.optional doCoverageAnalysis "coverageReportPhase") ++ ["finalPhase"];
  
      meta = (if args ? meta then args.meta else {}) // {
        description = if doCoverageAnalysis then "Coverage analysis" else "Native Nix build on ${stdenv.system}";
      };
  