2016-11-01 17:29:43 +00:00
|
|
|
{ pkgs, stdenv, ghc, all-cabal-hashes
|
2015-09-16 08:19:56 +01:00
|
|
|
, compilerConfig ? (self: super: {})
|
2015-01-07 19:31:32 +00:00
|
|
|
, packageSetConfig ? (self: super: {})
|
|
|
|
, overrides ? (self: super: {})
|
2017-05-30 19:27:32 +01:00
|
|
|
, initialPackages ? import ./hackage-packages.nix
|
2017-06-22 12:24:11 +01:00
|
|
|
, configurationCommon ? import ./configuration-common.nix
|
|
|
|
, configurationNix ? import ./configuration-nix.nix
|
2015-01-07 19:31:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-04-12 18:28:06 +01:00
|
|
|
inherit (stdenv.lib) extends makeExtensible;
|
|
|
|
inherit (import ./lib.nix { inherit pkgs; }) overrideCabal makePackageSet;
|
2016-06-11 18:21:19 +01:00
|
|
|
|
2017-04-12 18:28:06 +01:00
|
|
|
haskellPackages = makePackageSet {
|
2017-05-30 19:27:32 +01:00
|
|
|
package-set = initialPackages;
|
2017-06-11 01:04:46 +01:00
|
|
|
inherit ghc extensible-self;
|
2017-04-12 18:28:06 +01:00
|
|
|
};
|
2015-01-07 19:31:32 +00:00
|
|
|
|
2017-06-22 12:24:11 +01:00
|
|
|
commonConfiguration = configurationCommon { inherit pkgs; };
|
|
|
|
nixConfiguration = configurationNix { inherit pkgs; };
|
2015-01-07 19:31:32 +00:00
|
|
|
|
2017-06-11 01:04:46 +01:00
|
|
|
extensible-self = 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
|
2017-06-11 01:04:46 +01:00
|
|
|
(extends nixConfiguration haskellPackages)))));
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
extensible-self
|