haskell: ghcjs packages: Break dependency cycle less invasive

Between cabal and hscolour.
This commit is contained in:
Leon Isenberg 2017-04-06 20:30:44 +02:00
parent a5ee494046
commit 7a08e57b9e
3 changed files with 7 additions and 5 deletions

View file

@ -382,7 +382,6 @@
version = "1.24.0.0";
src = "${ghcjsBoot}/boot/cabal/Cabal";
doCheck = false;
hyperlinkSource = false;
libraryHaskellDepends = [
array base binary bytestring containers deepseq directory filepath
pretty process time unix

View file

@ -327,7 +327,6 @@
version = "1.22.8.0";
src = "${ghcjsBoot}/boot/cabal/Cabal";
doCheck = false;
hyperlinkSource = false;
libraryHaskellDepends = [
array base binary bytestring containers deepseq directory filepath
pretty process time unix

View file

@ -58,9 +58,13 @@ self: super:
# Almost all packages require Cabal to build their Setup.hs,
# but usually they don't declare it explicitly as they don't need to for normal GHC.
# To account for that we add Cabal by default.
mkDerivation = args:
if args.pname == "Cabal" then super.mkDerivation args else super.mkDerivation (args //
{ setupHaskellDepends = (args.setupHaskellDepends or []) ++ [ self.Cabal ]; });
mkDerivation = args: super.mkDerivation (args // {
setupHaskellDepends = (args.setupHaskellDepends or []) ++
(if args.pname == "Cabal" then [ ]
# Break the dependency cycle between Cabal and hscolour
else if args.pname == "hscolour" then [ (dontHyperlinkSource self.Cabal) ]
else [ self.Cabal ]);
});
## OTHER PACKAGES