haskell.packages: refactor set setup using composeManyExtensions
This commit is contained in:
parent
e155ff4a7f
commit
8cca9b1634
@ -19,17 +19,16 @@ let
|
|||||||
inherit stdenv haskellLib ghc buildHaskellPackages extensible-self all-cabal-hashes;
|
inherit stdenv haskellLib ghc buildHaskellPackages extensible-self all-cabal-hashes;
|
||||||
};
|
};
|
||||||
|
|
||||||
commonConfiguration = configurationCommon { inherit pkgs haskellLib; };
|
extensions = lib.composeManyExtensions [
|
||||||
nixConfiguration = configurationNix { inherit pkgs haskellLib; };
|
nonHackagePackages
|
||||||
|
(configurationNix { inherit pkgs haskellLib; })
|
||||||
|
(configurationCommon { inherit pkgs haskellLib; })
|
||||||
|
compilerConfig
|
||||||
|
packageSetConfig
|
||||||
|
overrides
|
||||||
|
];
|
||||||
|
|
||||||
extensible-self = makeExtensible
|
extensible-self = makeExtensible (extends extensions haskellPackages);
|
||||||
(extends overrides
|
|
||||||
(extends packageSetConfig
|
|
||||||
(extends compilerConfig
|
|
||||||
(extends commonConfiguration
|
|
||||||
(extends nixConfiguration
|
|
||||||
(extends nonHackagePackages
|
|
||||||
haskellPackages))))));
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user