haskellPackages.ghc-mod: add overrides to support ghc8
commit679a51b1164c577335e424882cd4df0acf96e961
authorobadz <obadz-git@obadz.com>
dateTue 7 Jun 2016, 20:32 (10 years ago)
parent55cde25
pkgs/development/haskell-modules/configuration-common.nix+1−1
@@ -755,7 +755,7 @@ self: super: {
755755 lens-aeson = dontCheck super.lens-aeson;
756756
757757 # Byte-compile elisp code for Emacs.
758− ghc-mod = overrideCabal (super.ghc-mod.override { cabal-helper = self.cabal-helper_0_6_3_1; }) (drv: {
758+ ghc-mod = overrideCabal super.ghc-mod (drv: {
759759 preCheck = "export HOME=$TMPDIR";
760760 testToolDepends = drv.testToolDepends or [] ++ [self.cabal-install];
761761 doCheck = false; # https://github.com/kazu-yamamoto/ghc-mod/issues/335
pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+2
@@ -210,4 +210,6 @@ self: super: {
210210 semigroups = addBuildDepends super.semigroups (with self; [hashable tagged text unordered-containers]);
211211 intervals = addBuildDepends super.intervals (with self; [doctest QuickCheck]);
212212
213+ # Moved out from common as no longer the case for GHC8
214+ ghc-mod = super.ghc-mod.override { cabal-helper = self.cabal-helper_0_6_3_1; };
213215}
pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix+9
@@ -53,4 +53,13 @@ self: super: {
5353 license = pkgs.stdenv.lib.licenses.bsd3;
5454 }) {};
5555
56+ # ghc-mod has a ghc-8 branch that has not yet been merged
57+ ghc-mod = super."ghc-mod".overrideDerivation (attrs: rec {
58+ src = pkgs.fetchFromGitHub {
59+ owner = "DanielG";
60+ repo = "ghc-mod";
61+ rev = "f2c7b01e372dd8c516b1ccbe5a1025cc7814347c";
62+ sha256 = "1i45196qrzlhgbisnvkzni4n54saky0i1kyla162xcb5cg3kf2ji";
63+ };
64+ });
5665}