2024-06-14 19:13:43 +00:00
|
|
|
{ pkgs, haskellLib }:
|
|
|
|
|
|
|
|
with haskellLib;
|
|
|
|
|
|
|
|
# cabal2nix doesn't properly add dependencies conditional on arch(javascript)
|
2024-07-22 16:13:34 +00:00
|
|
|
|
2024-06-14 19:13:43 +00:00
|
|
|
(self: super: {
|
|
|
|
ghcjs-base = addBuildDepends (with self; [
|
|
|
|
aeson
|
|
|
|
attoparsec
|
|
|
|
dlist
|
|
|
|
hashable
|
|
|
|
primitive
|
|
|
|
scientific
|
|
|
|
unordered-containers
|
|
|
|
vector
|
|
|
|
]) super.ghcjs-base;
|
|
|
|
|
|
|
|
ghcjs-dom = addBuildDepend self.ghcjs-dom-javascript super.ghcjs-dom;
|
|
|
|
ghcjs-dom-javascript = addBuildDepend self.ghcjs-base super.ghcjs-dom-javascript;
|
|
|
|
jsaddle = addBuildDepend self.ghcjs-base super.jsaddle;
|
|
|
|
jsaddle-dom = addBuildDepend self.ghcjs-base super.jsaddle-dom;
|
2024-07-22 16:13:34 +00:00
|
|
|
|
2024-08-21 00:10:59 +00:00
|
|
|
entropy = addBuildDepend self.ghcjs-dom super.entropy;
|
|
|
|
|
2024-07-22 16:13:34 +00:00
|
|
|
reflex-dom = super.reflex-dom.override (drv: {
|
|
|
|
jsaddle-webkit2gtk = null;
|
2024-07-28 18:36:10 +00:00
|
|
|
});
|
2024-08-16 08:16:58 +00:00
|
|
|
patch = pkgs.lib.pipe super.patch (
|
|
|
|
with haskellLib;
|
|
|
|
[
|
|
|
|
disableParallelBuilding # https://gitlab.haskell.org/ghc/ghc/-/issues/25083#note_578275
|
|
|
|
doJailbreak
|
|
|
|
]
|
|
|
|
);
|
2024-06-14 19:13:43 +00:00
|
|
|
})
|