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