git.iko.soy/typeable/nixpkgs
on master help sign in
cabal-install: fix build after updating to version 2.x
commit550373b000b6afdd268007a8ce70265a97ba61e2 authorPeter Simons <simons@cryp.to> dateTue 8 Aug 2017, 08:56 (9 years ago) parent35dd36a
3 files changed+4−8
pkgs/development/haskell-modules/configuration-common.nix+4−2 pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix−3 pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix−3
pkgs/development/haskell-modules/configuration-common.nix+4−2
@@ -27,8 +27,10 @@ self: super: {
2727 ghcjs-base = null;
2828 ghcjs-prim = null;
2929
30− # Some packages need a non-core version of Cabal.
31− cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_1_24_2_0; });
30+ # cabal-install needs Cabal 2.x. hackage-security's test suite does not compile with
31+ # Cabal 2.x, though. See https://github.com/haskell/hackage-security/issues/188.
32+ cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_2_0_0_2; });
33+ hackage-security = dontCheck super.hackage-security;
3234
3335 # Link statically to avoid runtime dependency on GHC.
3436 jailbreak-cabal = (disableSharedExecutables super.jailbreak-cabal).override { Cabal = self.Cabal_1_20_0_4; };
pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix−3
@@ -36,9 +36,6 @@ self: super: {
3636 unix = null;
3737 xhtml = null;
3838
39− # Enable latest version of cabal-install.
40− cabal-install = (dontCheck (super.cabal-install)).overrideScope (self: super: { Cabal = self.Cabal_1_24_2_0; });
41−
4239 # Build jailbreak-cabal with the latest version of Cabal.
4340 jailbreak-cabal = super.jailbreak-cabal.override { Cabal = self.Cabal_1_24_2_0; };
4441
pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix−3
@@ -35,9 +35,6 @@ self: super: {
3535 unix = null;
3636 xhtml = null;
3737
38− # cabal-install can use the native Cabal library.
39− cabal-install = super.cabal-install.override { Cabal = null; };
40−
4138 # jailbreak-cabal can use the native Cabal library.
4239 jailbreak-cabal = super.jailbreak-cabal.override { Cabal = null; };
4340