Skip to content

Commit

Permalink
NixOS#84563 NixOS#95931 fix ghcjs 8.6 so it builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvio committed Aug 24, 2020
1 parent 5f6fc2d commit 3369b35
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
9 changes: 6 additions & 3 deletions pkgs/development/compilers/ghcjs-ng/8.6/dep-overrides.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{ haskellLib }:
{ lib, haskellLib, fetchFromGitHub }:

let inherit (haskellLib) doJailbreak dontHaddock;
let inherit (haskellLib) doJailbreak dontHaddock dontCheck;
in self: super: {
ghcjs = super.ghcjs.override {
shelly = super.shelly_1_8_1;
};
ghc-api-ghcjs = super.ghc-api-ghcjs.override
{
happy = self.happy_1_19_5;
};
haddock-library-ghcjs = doJailbreak super.haddock-library-ghcjs;
haddock-library-ghcjs = doJailbreak (dontCheck super.haddock-library-ghcjs);
haddock-api-ghcjs = doJailbreak (dontHaddock super.haddock-api-ghcjs);
}
3 changes: 1 addition & 2 deletions pkgs/development/compilers/ghcjs-ng/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ in stdenv.mkDerivation {

inherit passthru;

meta.broken = true; # build does not succeed
meta.platforms = lib.platforms.none; # passthru.bootPkgs.ghc.meta.platforms;
meta.platforms = passthru.bootPkgs.ghc.meta.platforms;
meta.maintainers = [lib.maintainers.elvishjerricco];
}
8 changes: 8 additions & 0 deletions pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,12 @@ self: super: {

# Only 0.6 is compatible with ghc 8.6 https://hackage.haskell.org/package/apply-refact/changelog
apply-refact = super.apply-refact_0_6_0_0;

# ghcjs 8.6.x relies on shelly < 1.9.0 (default is 1.9.0 in current package set, adding 1.8.1).
shelly_1_8_1 = super.callCabal2nix "shelly" (pkgs.fetchFromGitHub {
owner = "gregwebs";
repo = "Shelly.hs";
rev = "d0a185c7dee96820fc3652e7603d81a28276d76c";
sha256 = "173msjlq6yxpvd3900ajmd8znyg9kfg5csbxbiz4m7hvxkg8kbkn";
}) {};
}

0 comments on commit 3369b35

Please sign in to comment.