2021-08-25 10:55:30 +00:00
|
|
|
# GHCJS package fixes
|
|
|
|
#
|
|
|
|
# Please insert new packages *alphabetically*
|
|
|
|
# in the OTHER PACKAGES section.
|
|
|
|
{ pkgs, haskellLib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
removeLibraryHaskellDepends = pnames: depends:
|
|
|
|
builtins.filter (e: !(builtins.elem (e.pname or "") pnames)) depends;
|
|
|
|
in
|
|
|
|
|
|
|
|
with haskellLib;
|
|
|
|
|
|
|
|
self: super:
|
|
|
|
|
|
|
|
## GENERAL SETUP BASE PACKAGES
|
|
|
|
{
|
|
|
|
inherit (self.ghc.bootPkgs)
|
|
|
|
jailbreak-cabal alex happy gtk2hs-buildtools rehoo hoogle;
|
|
|
|
|
2022-06-13 08:32:49 +00:00
|
|
|
# Test suite fails; https://github.com/ghcjs/ghcjs-base/issues/133
|
2021-08-25 10:55:30 +00:00
|
|
|
ghcjs-base = dontCheck (self.callPackage ../compilers/ghcjs/ghcjs-base.nix {
|
2022-04-05 10:50:04 +00:00
|
|
|
fetchFromGitHub = pkgs.buildPackages.fetchFromGitHub;
|
2022-06-08 14:25:12 +00:00
|
|
|
aeson = self.aeson_1_5_6_0;
|
2021-08-25 10:55:30 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
# GHCJS does not ship with the same core packages as GHC.
|
|
|
|
# https://github.com/ghcjs/ghcjs/issues/676
|
2022-11-01 07:02:04 +00:00
|
|
|
stm = doJailbreak self.stm_2_5_1_0;
|
2022-05-19 04:09:40 +00:00
|
|
|
exceptions = dontCheck self.exceptions_0_10_5;
|
2021-08-25 10:55:30 +00:00
|
|
|
|
|
|
|
## OTHER PACKAGES
|
|
|
|
|
|
|
|
# Runtime exception in tests, missing C API h$realloc
|
|
|
|
base-compat-batteries = dontCheck super.base-compat-batteries;
|
|
|
|
|
|
|
|
# nodejs crashes during test
|
|
|
|
ChasingBottoms = dontCheck super.ChasingBottoms;
|
|
|
|
|
2022-06-13 08:32:49 +00:00
|
|
|
# runs forever
|
|
|
|
text-short = dontCheck super.text-short;
|
|
|
|
|
2021-08-25 10:55:30 +00:00
|
|
|
# doctest doesn't work on ghcjs, but sometimes dontCheck doesn't seem to get rid of the dependency
|
|
|
|
doctest = pkgs.lib.warn "ignoring dependency on doctest" null;
|
|
|
|
|
2021-10-26 10:20:34 +00:00
|
|
|
ghcjs-dom = overrideCabal (drv: {
|
2021-08-25 10:55:30 +00:00
|
|
|
libraryHaskellDepends = with self; [
|
|
|
|
ghcjs-base ghcjs-dom-jsffi text transformers
|
|
|
|
];
|
|
|
|
configureFlags = [ "-fjsffi" "-f-webkit" ];
|
2021-10-26 10:20:34 +00:00
|
|
|
}) super.ghcjs-dom;
|
2021-08-25 10:55:30 +00:00
|
|
|
|
2021-10-26 10:20:34 +00:00
|
|
|
ghcjs-dom-jsffi = overrideCabal (drv: {
|
2021-08-25 10:55:30 +00:00
|
|
|
libraryHaskellDepends = (drv.libraryHaskellDepends or []) ++ [ self.ghcjs-base self.text ];
|
|
|
|
broken = false;
|
2021-10-26 10:20:34 +00:00
|
|
|
}) super.ghcjs-dom-jsffi;
|
2021-08-25 10:55:30 +00:00
|
|
|
|
|
|
|
# https://github.com/Deewiant/glob/issues/39
|
|
|
|
Glob = dontCheck super.Glob;
|
|
|
|
|
|
|
|
# Test fails to compile during the hsc2hs stage
|
|
|
|
hashable = dontCheck super.hashable;
|
|
|
|
|
|
|
|
# uses doctest
|
|
|
|
http-types = dontCheck super.http-types;
|
|
|
|
|
2021-10-26 10:20:34 +00:00
|
|
|
jsaddle = overrideCabal (drv: {
|
2021-08-25 10:55:30 +00:00
|
|
|
libraryHaskellDepends = (drv.libraryHaskellDepends or []) ++ [ self.ghcjs-base ];
|
2021-10-26 10:20:34 +00:00
|
|
|
}) super.jsaddle;
|
2021-08-25 10:55:30 +00:00
|
|
|
|
|
|
|
# Tests hang, possibly some issue with tasty and race(async) usage in the nonTerminating tests
|
|
|
|
logict = dontCheck super.logict;
|
|
|
|
|
|
|
|
patch = dontCheck super.patch;
|
|
|
|
|
|
|
|
# TODO: tests hang
|
|
|
|
pcre-light = dontCheck super.pcre-light;
|
|
|
|
|
|
|
|
# Terminal test not supported on ghcjs
|
|
|
|
QuickCheck = dontCheck super.QuickCheck;
|
|
|
|
|
2021-10-26 10:20:34 +00:00
|
|
|
reflex = overrideCabal (drv: {
|
2021-08-25 10:55:30 +00:00
|
|
|
libraryHaskellDepends = (drv.libraryHaskellDepends or []) ++ [ self.ghcjs-base ];
|
2021-10-26 10:20:34 +00:00
|
|
|
}) super.reflex;
|
2021-08-25 10:55:30 +00:00
|
|
|
|
2021-10-26 10:20:34 +00:00
|
|
|
reflex-dom = overrideCabal (drv: {
|
2021-08-25 10:55:30 +00:00
|
|
|
libraryHaskellDepends = removeLibraryHaskellDepends ["jsaddle-webkit2gtk"] (drv.libraryHaskellDepends or []);
|
2021-10-26 10:20:34 +00:00
|
|
|
}) super.reflex-dom;
|
2021-08-25 10:55:30 +00:00
|
|
|
|
|
|
|
# https://github.com/dreixel/syb/issues/21
|
|
|
|
syb = dontCheck super.syb;
|
|
|
|
|
|
|
|
# nodejs crashes during test
|
|
|
|
scientific = dontCheck super.scientific;
|
|
|
|
|
|
|
|
# Tests use TH which gives error
|
|
|
|
tasty-quickcheck = dontCheck super.tasty-quickcheck;
|
|
|
|
|
|
|
|
temporary = dontCheck super.temporary;
|
|
|
|
|
|
|
|
# 2 tests fail, related to time precision
|
|
|
|
time-compat = dontCheck super.time-compat;
|
|
|
|
|
|
|
|
# TODO: The tests have a TH error, which has been fixed in ghc
|
|
|
|
# https://gitlab.haskell.org/ghc/ghc/-/issues/15481 but somehow the issue is
|
|
|
|
# still present here https://github.com/glguy/th-abstraction/issues/53
|
|
|
|
th-abstraction = dontCheck super.th-abstraction;
|
|
|
|
|
|
|
|
# Need hedgehog for tests, which fails to compile due to dep on concurrent-output
|
|
|
|
zenc = dontCheck super.zenc;
|
|
|
|
}
|