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