git.iko.soy/typeable/nixpkgs
on master help sign in
Fixed GHCJS
commitfcc8cae88d5429ae2693b03e870dfc4fe6a1c6bf authorWill Fancher <elvishjerricco@gmail.com> dateThu 18 Jan 2018, 16:39 (9 years ago) parent866717d
6 files changed+17−7
pkgs/development/compilers/ghcjs/base.nix+1 pkgs/development/compilers/ghcjs/default.nix+2−2 pkgs/development/compilers/ghcjs/head.nix+2−2 pkgs/development/haskell-modules/configuration-common.nix+3 pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix+4 pkgs/top-level/haskell-packages.nix+5−3
pkgs/development/compilers/ghcjs/base.nix+1
@@ -174,6 +174,7 @@ in mkDerivation (rec {
174174 isGhcjs = true;
175175 inherit nodejs ghcjsBoot;
176176 socket-io = pkgs.nodePackages."socket.io";
177+ haskellCompilerName = "ghcjs";
177178
178179 # let us assume ghcjs is never actually cross compiled
179180 targetPrefix = "";
pkgs/development/compilers/ghcjs/default.nix+2−2
@@ -1,5 +1,5 @@
1−{ bootPkgs }:
1+{ bootPkgs, cabal-install }:
22
33bootPkgs.callPackage ./base.nix {
4− inherit bootPkgs;
4+ inherit bootPkgs cabal-install;
55}
pkgs/development/compilers/ghcjs/head.nix+2−2
@@ -1,9 +1,9 @@
1−{ fetchgit, fetchFromGitHub, bootPkgs }:
1+{ fetchgit, fetchFromGitHub, bootPkgs, cabal-install }:
22
33bootPkgs.callPackage ./base.nix {
44 version = "0.2.020170323";
55
6− inherit bootPkgs;
6+ inherit bootPkgs cabal-install;
77
88 ghcjsSrc = fetchFromGitHub {
99 owner = "ghcjs";
pkgs/development/haskell-modules/configuration-common.nix+3
@@ -946,4 +946,7 @@ self: super: {
946946 # Add support for https://github.com/haskell-hvr/multi-ghc-travis.
947947 multi-ghc-travis = self.callPackage ../tools/haskell/multi-ghc-travis { ShellCheck = self.ShellCheck_0_4_6; };
948948
949+ # https://github.com/yesodweb/Shelly.hs/issues/162
950+ shelly = dontCheck super.shelly;
951+
949952}
pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix+4
@@ -68,4 +68,8 @@ self: super: {
6868 # inline-c > 0.5.6.0 requires template-haskell >= 2.12
6969 inline-c = super.inline-c_0_5_6_1;
7070 inline-c-cpp = super.inline-c-cpp_0_1_0_0;
71+
72+ # Newer versions require GHC 8.2.
73+ haddock-api = self.haddock-api_2_17_4;
74+ haddock = self.haddock_2_17_5;
7175}
pkgs/top-level/haskell-packages.nix+5−3
@@ -1,4 +1,4 @@
1−{ pkgs, lib, newScope, stdenv, buildPlatform, targetPlatform }:
1+{ pkgs, lib, newScope, stdenv, buildPlatform, targetPlatform, cabal-install }:
22
33let
44 # These are attributes in compiler and packages that don't support integer-simple.
@@ -91,10 +91,12 @@ in rec {
9191 selfPkgs = packages.ghcHEAD;
9292 };
9393 ghcjs = packages.ghc7103.callPackage ../development/compilers/ghcjs {
94− bootPkgs = packages.ghc821Binary;
94+ bootPkgs = packages.ghc7103;
95+ inherit cabal-install;
9596 };
9697 ghcjsHEAD = packages.ghc802.callPackage ../development/compilers/ghcjs/head.nix {
97− bootPkgs = packages.ghc821Binary;
98+ bootPkgs = packages.ghc802;
99+ inherit cabal-install;
98100 };
99101 ghcHaLVM240 = callPackage ../development/compilers/halvm/2.4.0.nix rec {
100102 bootPkgs = packages.ghc7103Binary;