A function is added to enable the generation of a HPC report. For example: pkgs.haskell.lib.doCoverage drv will create a HPC report of the Haskell package drv in the directory: $out/share/hpc Closes https://github.com/NixOS/nixpkgs/pull/22797/files.