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