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