mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ pkgs, haskellLib }:
|
|
|
|
with haskellLib;
|
|
|
|
let
|
|
disableParallelBuilding = overrideCabal (drv: {
|
|
enableParallelBuilding = false;
|
|
});
|
|
in
|
|
|
|
# cabal2nix doesn't properly add dependencies conditional on arch(javascript)
|
|
|
|
(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;
|
|
|
|
entropy = addBuildDepend self.ghcjs-dom super.entropy;
|
|
|
|
reflex-dom = super.reflex-dom.override (drv: {
|
|
jsaddle-webkit2gtk = null;
|
|
});
|
|
patch = pkgs.lib.pipe super.patch (
|
|
with haskellLib;
|
|
[
|
|
disableParallelBuilding # https://gitlab.haskell.org/ghc/ghc/-/issues/25083#note_578275
|
|
doJailbreak
|
|
]
|
|
);
|
|
})
|