Created
October 14, 2015 18:28
-
-
Save jb55/af8b095b3ad97fb3035e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ profiling ? false | |
, compiler ? null | |
}: | |
let baseHaskellPackages = | |
if compiler != null | |
then pkgs.haskell.packages.${compiler} | |
else pkgs.haskellPackages; | |
profilingOverride = super: if profiling then { | |
mkDerivation = args: super.mkDerivation (args // { | |
enableLibraryProfiling = true; | |
}); | |
} else {}; | |
haskellPackages = baseHaskellPackages.override { | |
overrides = self: super: profilingOverride super; | |
}; | |
callPackage = haskellPackages.callPackage; | |
in callPackage ./project.nix { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment