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