Merge pull request #41939 from obsidiansystems/haskell-always-setup-separately
haskell generic-builder: Always use separate pkg db for custom setup
This commit is contained in:
@@ -1069,3 +1069,14 @@ self: super: {
|
||||
in {
|
||||
inherit amazonka amazonka-core amazonka-test;
|
||||
})
|
||||
|
||||
//
|
||||
|
||||
# The actual Cabal library gets built while building its `Setup.hs`.
|
||||
(let
|
||||
inherit (pkgs.lib) filterAttrs flip mapAttrs hasPrefix;
|
||||
cabals = filterAttrs (n: v: hasPrefix "Cabal_" n) super;
|
||||
fixCabal = n: v: addSetupDepends v [ self.mtl self.parsec ];
|
||||
in
|
||||
mapAttrs fixCabal cabals
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user