git.iko.soy/typeable/nixpkgs
on master help sign in
Work around issues that appear when compiling the 'split' and 'dependent-map' packages with ghcjs
commite50802323c3ae38ef7ecce2d438c365bde6c6b0e authorRyan Trinkle <ryan.trinkle@gmail.com> dateFri 2 Jan 2015, 14:19 (12 years ago) parentca9d370
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