haskell.packages: refactor set setup using composeManyExtensions

This commit is contained in:
sternenseemann 2021-05-07 19:25:35 +02:00
parent e155ff4a7f
commit 8cca9b1634

View File

@ -19,17 +19,16 @@ let
inherit stdenv haskellLib ghc buildHaskellPackages extensible-self all-cabal-hashes;
};
commonConfiguration = configurationCommon { inherit pkgs haskellLib; };
nixConfiguration = configurationNix { inherit pkgs haskellLib; };
extensions = lib.composeManyExtensions [
nonHackagePackages
(configurationNix { inherit pkgs haskellLib; })
(configurationCommon { inherit pkgs haskellLib; })
compilerConfig
packageSetConfig
overrides
];
extensible-self = makeExtensible
(extends overrides
(extends packageSetConfig
(extends compilerConfig
(extends commonConfiguration
(extends nixConfiguration
(extends nonHackagePackages
haskellPackages))))));
extensible-self = makeExtensible (extends extensions haskellPackages);
in