@@ -60,9 +60,9 @@ let
6060 srcDirs = map (l: l.src.outPath) (projectLibs);
6161
6262in pkgs.runCommand "project-coverage-report"
63− ({ buildInputs = [ghc];
64− LANG = "en_US.UTF-8";
65− LC_ALL = "en_US.UTF-8";
63+ ({ nativeBuildInputs = [ (ghc.buildGHC or ghc) pkgs.buildPackages.zip ];
64+ LANG = "en_US.UTF-8";
65+ LC_ALL = "en_US.UTF-8";
6666 } // lib.optionalAttrs (stdenv.buildPlatform.libc == "glibc") {
6767 LOCALE_ARCHIVE = "${pkgs.buildPackages.glibcLocales}/lib/locale/locale-archive";
6868 })
@@ -106,6 +106,7 @@ in pkgs.runCommand "project-coverage-report"
106106 popd
107107 }
108108
109+ mkdir -p $out/nix-support
109110 mkdir -p $out/share/hpc/vanilla/tix/all
110111 mkdir -p $out/share/hpc/vanilla/mix/
111112 mkdir -p $out/share/hpc/vanilla/html/
@@ -136,6 +137,7 @@ in pkgs.runCommand "project-coverage-report"
136137
137138 # Markup a HTML coverage report for the entire project
138139 cp ${projectIndexHtml} $out/share/hpc/vanilla/html/index.html
140+ echo "report coverage-per-package $out/share/hpc/vanilla/html/index.html" >> $out/nix-support/hydra-build-products
139141
140142 local markupOutDir="$out/share/hpc/vanilla/html/all"
141143 local srcDirs=${toBashArray srcDirs}
@@ -146,5 +148,9 @@ in pkgs.runCommand "project-coverage-report"
146148 findModules allMixModules "$out/share/hpc/vanilla/mix/" "*.mix"
147149
148150 markup srcDirs mixDirs allMixModules "$markupOutDir" "$tixFile"
151+
152+ echo "report coverage $markupOutDir/hpc_index.html" >> $out/nix-support/hydra-build-products
153+ ( cd $out/share/hpc/vanilla/html ; zip -r $out/share/hpc/vanilla/html.zip . )
154+ echo "file zip $out/share/hpc/vanilla/html.zip" >> $out/nix-support/hydra-build-products
149155 fi
150156 ''