Re-add the ability to enable profiling to default.nix
This commit is contained in:
parent
9a17874d66
commit
2dadf9c82a
|
@ -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 = ./.;
|
||||
|
|
Loading…
Reference in a new issue