2016-11-01 20:29:43 +03:00
|
|
|
{ pkgs, stdenv, ghc, all-cabal-hashes
|
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: {})
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-04-12 20:28:06 +03:00
|
|
|
inherit (stdenv.lib) extends makeExtensible;
|
|
|
|
inherit (import ./lib.nix { inherit pkgs; }) overrideCabal makePackageSet;
|
2016-06-11 20:21:19 +03:00
|
|
|
|
2017-04-12 20:28:06 +03:00
|
|
|
haskellPackages = makePackageSet {
|
|
|
|
package-set = import ./hackage-packages.nix;
|
|
|
|
inherit ghc;
|
|
|
|
};
|
2015-01-07 22:31:32 +03:00
|
|
|
|
|
|
|
commonConfiguration = import ./configuration-common.nix { inherit pkgs; };
|
2017-02-02 18:49:28 +03:00
|
|
|
nixConfiguration = import ./configuration-nix.nix { inherit pkgs; };
|
2015-01-07 22:31:32 +03:00
|
|
|
|
|
|
|
in
|
|
|
|
|
2017-02-26 01:38:38 +03:00
|
|
|
makeExtensible
|
2015-11-24 15:06:58 +03:00
|
|
|
(extends overrides
|
|
|
|
(extends packageSetConfig
|
|
|
|
(extends compilerConfig
|
2017-02-02 18:49:28 +03:00
|
|
|
(extends commonConfiguration
|
|
|
|
(extends nixConfiguration haskellPackages)))))
|