haskell: Add setup depends for Cabal

This commit is contained in:
Kirill Elagin 2018-04-27 20:14:15 +03:00 committed by John Ericson
parent f8ec07e836
commit 6d5751bfa5

View file

@ -1068,3 +1068,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
)