mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
28 lines
744 B
Nix
28 lines
744 B
Nix
{ pkgs, stdenv, ghc, all-cabal-hashes
|
|
, compilerConfig ? (self: super: {})
|
|
, packageSetConfig ? (self: super: {})
|
|
, overrides ? (self: super: {})
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (stdenv.lib) extends makeExtensible;
|
|
inherit (import ./lib.nix { inherit pkgs; }) overrideCabal makePackageSet;
|
|
|
|
haskellPackages = makePackageSet {
|
|
package-set = import ./hackage-packages.nix;
|
|
inherit ghc;
|
|
};
|
|
|
|
commonConfiguration = import ./configuration-common.nix { inherit pkgs; };
|
|
nixConfiguration = import ./configuration-nix.nix { inherit pkgs; };
|
|
|
|
in
|
|
|
|
makeExtensible
|
|
(extends overrides
|
|
(extends packageSetConfig
|
|
(extends compilerConfig
|
|
(extends commonConfiguration
|
|
(extends nixConfiguration haskellPackages)))))
|