3
0
Fork 0
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:
Peter Simons 2015-01-03 00:10:13 +01:00
commit 2be045fac5

View file

@ -303,6 +303,24 @@
unix = null;
unorderedContainers = 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"
};
};
};
};
};