2016-11-01 17:29:43 +00:00
|
|
|
{ pkgs, stdenv, ghc, all-cabal-hashes
|
2015-09-16 07:19:56 +00:00
|
|
|
, compilerConfig ? (self: super: {})
|
2015-01-07 19:31:32 +00:00
|
|
|
, packageSetConfig ? (self: super: {})
|
|
|
|
, overrides ? (self: super: {})
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-04-12 17:28:06 +00:00
|
|
|
inherit (stdenv.lib) extends makeExtensible;
|
|
|
|
inherit (import ./lib.nix { inherit pkgs; }) overrideCabal makePackageSet;
|
2016-06-11 17:21:19 +00:00
|
|
|
|
2017-04-12 17:28:06 +00:00
|
|
|
haskellPackages = makePackageSet {
|
|
|
|
package-set = import ./hackage-packages.nix;
|
|
|
|
inherit ghc;
|
|
|
|
};
|
2015-01-07 19:31:32 +00:00
|
|
|
|
|
|
|
commonConfiguration = import ./configuration-common.nix { inherit pkgs; };
|
2017-02-02 15:49:28 +00:00
|
|
|
nixConfiguration = import ./configuration-nix.nix { inherit pkgs; };
|
2015-01-07 19:31:32 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
2017-02-25 22:38:38 +00:00
|
|
|
makeExtensible
|
2015-11-24 12:06:58 +00:00
|
|
|
(extends overrides
|
|
|
|
(extends packageSetConfig
|
|
|
|
(extends compilerConfig
|
2017-02-02 15:49:28 +00:00
|
|
|
(extends commonConfiguration
|
|
|
|
(extends nixConfiguration haskellPackages)))))
|