forked from mirrors/nixpkgs
Merge pull request #5534 from ryantrinkle/ghcjs-workarounds
Work around issues that appear when compiling the 'split' and 'dependent-map' packages with ghcjs
This commit is contained in:
commit
2be045fac5
|
@ -303,6 +303,24 @@
|
||||||
unix = null;
|
unix = null;
|
||||||
unorderedContainers = null;
|
unorderedContainers = null;
|
||||||
vector = null;
|
vector = null;
|
||||||
|
|
||||||
|
# GHCJS-specific workarounds
|
||||||
|
split = super.split.override {
|
||||||
|
cabal = self.cabal.override {
|
||||||
|
extension = self: super: {
|
||||||
|
doCheck = false; # Under ghcjs, the tests hang
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
dependentMap = super.dependentMap.override {
|
||||||
|
cabal = self.cabal.override {
|
||||||
|
extension = self: super: {
|
||||||
|
preConfigure = ''
|
||||||
|
sed -i 's/^.*ghc-options:.*$//' *.cabal
|
||||||
|
''; # Without this, we get "target ‘base’ is not a module name or a source file"
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue