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