2018-07-04 11:18:21 +00:00
|
|
|
{ pkgs, stdenv, lib, haskellLib, ghc, all-cabal-hashes
|
2018-01-04 21:18:02 +00:00
|
|
|
, buildHaskellPackages
|
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: {})
|
2017-12-22 15:12:53 +00:00
|
|
|
, initialPackages ? import ./initial-packages.nix
|
2018-08-25 13:24:41 +00:00
|
|
|
, nonHackagePackages ? import ./non-hackage-packages.nix
|
2017-06-22 11:24:11 +00:00
|
|
|
, configurationCommon ? import ./configuration-common.nix
|
|
|
|
, configurationNix ? import ./configuration-nix.nix
|
2015-01-07 19:31:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-08-01 16:44:08 +00:00
|
|
|
inherit (lib) extends makeExtensible;
|
2018-07-20 19:36:12 +00:00
|
|
|
inherit (haskellLib) makePackageSet;
|
2016-06-11 17:21:19 +00:00
|
|
|
|
2017-08-01 16:44:08 +00:00
|
|
|
haskellPackages = pkgs.callPackage makePackageSet {
|
2017-05-30 18:27:32 +00:00
|
|
|
package-set = initialPackages;
|
2018-03-26 00:39:38 +00:00
|
|
|
inherit stdenv haskellLib ghc buildHaskellPackages extensible-self all-cabal-hashes;
|
2017-04-12 17:28:06 +00:00
|
|
|
};
|
2015-01-07 19:31:32 +00:00
|
|
|
|
2018-07-04 11:18:21 +00:00
|
|
|
commonConfiguration = configurationCommon { inherit pkgs haskellLib; };
|
2017-08-01 16:44:08 +00:00
|
|
|
nixConfiguration = configurationNix { inherit pkgs haskellLib; };
|
2015-01-07 19:31:32 +00:00
|
|
|
|
2017-09-29 13:11:26 +00:00
|
|
|
extensible-self = makeExtensible
|
|
|
|
(extends overrides
|
|
|
|
(extends packageSetConfig
|
|
|
|
(extends compilerConfig
|
|
|
|
(extends commonConfiguration
|
2018-08-25 13:24:41 +00:00
|
|
|
(extends nixConfiguration
|
|
|
|
(extends nonHackagePackages
|
|
|
|
haskellPackages))))));
|
2017-09-29 13:11:26 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
extensible-self
|