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