nix-super/coverage.nix
2023-12-02 16:36:59 +00:00

37 lines
529 B
Nix

{ lib
, releaseTools
, nix
, stdenv
}:
let
inherit (nix) version;
in
releaseTools.coverageAnalysis {
name = "nix-coverage-${version}";
inherit (nix)
src
buildInputs
nativeBuildInputs
propagatedBuildInputs
configureFlags
makeFlags
installFlags
doInstallCheck
installCheckFlags
installCheckTarget
;
enableParallelBuilding = true;
dontInstall = false;
lcovFilter = [ "*/boost/*" "*-tab.*" ];
hardeningDisable = ["fortify"];
NIX_CFLAGS_COMPILE = "-DCOVERAGE=1";
}