Re-add the ability to enable profiling to default.nix

This commit is contained in:
John Wiegley 2018-04-05 14:41:04 -07:00
parent 9a17874d66
commit 2dadf9c82a

View file

@ -9,13 +9,20 @@ let
in { nixpkgs ? import pinnedPkgs {}
, compiler ? "ghc822"
, doProfiling ? false
, doBenchmark ? false }:
let
inherit (nixpkgs) pkgs;
haskellPackages = pkgs.haskell.packages.${compiler};
haskellPackages = let hpkgs = pkgs.haskell.packages.${compiler}; in
hpkgs // {
mkDerivation = args: hpkgs.mkDerivation (args // {
enableLibraryProfiling = doProfiling;
enableExecutableProfiling = doProfiling;
});
};
pkg = haskellPackages.developPackage {
root = ./.;