mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
haskell: Add setup depends for Cabal
This commit is contained in:
parent
f8ec07e836
commit
6d5751bfa5
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user