git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #5534 from ryantrinkle/ghcjs-workarounds

Work around issues that appear when compiling the 'split' and 'dependent-map' packages with ghcjs

commit2be045fac5673c79006c935cc5ee2a2bf3ee350b authorPeter Simons <simons@cryp.to> dateSat 3 Jan 2015, 00:10 (12 years ago) parent2caa039e508023
1 file changed+18
pkgs/top-level/haskell-defaults.nix+18
pkgs/top-level/haskell-defaults.nix+18
@@ -303,6 +303,24 @@
303303 unix = null;
304304 unorderedContainers = null;
305305 vector = null;
306+
307+ # GHCJS-specific workarounds
308+ split = super.split.override {
309+ cabal = self.cabal.override {
310+ extension = self: super: {
311+ doCheck = false; # Under ghcjs, the tests hang
312+ };
313+ };
314+ };
315+ dependentMap = super.dependentMap.override {
316+ cabal = self.cabal.override {
317+ extension = self: super: {
318+ preConfigure = ''
319+ sed -i 's/^.*ghc-options:.*$//' *.cabal
320+ ''; # Without this, we get "target ‘base’ is not a module name or a source file"
321+ };
322+ };
323+ };
306324 };
307325 };
308326