diff options
author | Peter Simons <simons@cryp.to> | 2017-08-08 08:56:20 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2017-08-08 10:09:56 +0200 |
commit | 550373b000b6afdd268007a8ce70265a97ba61e2 (patch) | |
tree | c601a7024fbf3629252baa213d681ab9c2ebbc09 /pkgs/development/haskell-modules/configuration-common.nix | |
parent | 35dd36a027c5421c62b883a948effbcf846af9af (diff) | |
download | nixpkgs-550373b000b6afdd268007a8ce70265a97ba61e2.tar nixpkgs-550373b000b6afdd268007a8ce70265a97ba61e2.tar.gz nixpkgs-550373b000b6afdd268007a8ce70265a97ba61e2.tar.bz2 nixpkgs-550373b000b6afdd268007a8ce70265a97ba61e2.tar.lz nixpkgs-550373b000b6afdd268007a8ce70265a97ba61e2.tar.xz nixpkgs-550373b000b6afdd268007a8ce70265a97ba61e2.tar.zst nixpkgs-550373b000b6afdd268007a8ce70265a97ba61e2.zip |
cabal-install: fix build after updating to version 2.x
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-common.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 0d2f235862f..069213c8798 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -27,8 +27,10 @@ self: super: { ghcjs-base = null; ghcjs-prim = null; - # Some packages need a non-core version of Cabal. - cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_1_24_2_0; }); + # cabal-install needs Cabal 2.x. hackage-security's test suite does not compile with + # Cabal 2.x, though. See https://github.com/haskell/hackage-security/issues/188. + cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_2_0_0_2; }); + hackage-security = dontCheck super.hackage-security; # Link statically to avoid runtime dependency on GHC. jailbreak-cabal = (disableSharedExecutables super.jailbreak-cabal).override { Cabal = self.Cabal_1_20_0_4; }; |