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:
John Ericson
2018-06-18 22:25:17 -04:00
committed by GitHub
2 changed files with 15 additions and 13 deletions
@@ -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
)