add more convenient adapter for making debug builds

This commit is contained in:
Aristid Breitkreuz 2014-09-06 16:18:26 +02:00
parent 2eed178fe7
commit e8a38b7822

View File

@ -423,6 +423,8 @@ let
{ deps = [ pkgs.lcov pkgs.enableGCOVInstrumentation ]; } { deps = [ pkgs.lcov pkgs.enableGCOVInstrumentation ]; }
../build-support/setup-hooks/make-coverage-analysis-report.sh; ../build-support/setup-hooks/make-coverage-analysis-report.sh;
# intended to be used like nix-build -E 'with <nixpkgs> {}; enableDebugging fooPackage'
enableDebugging = pkg : pkg.override { stdenv = stdenvAdapters.keepDebugInfo pkg.stdenv; };
### TOOLS ### TOOLS