diff options
author | Peter Simons <simons@cryp.to> | 2016-01-27 00:17:48 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2016-01-27 00:33:26 +0100 |
commit | 40b0b45fceea4f84ed563053bd85ff2c314142a4 (patch) | |
tree | 10cda11c6e7cbe3e84f2c25657f2f71519c954f0 /pkgs | |
parent | ffabca8f92207455a3cd6cfdb64314779253b0f6 (diff) | |
download | nixlib-40b0b45fceea4f84ed563053bd85ff2c314142a4.tar nixlib-40b0b45fceea4f84ed563053bd85ff2c314142a4.tar.gz nixlib-40b0b45fceea4f84ed563053bd85ff2c314142a4.tar.bz2 nixlib-40b0b45fceea4f84ed563053bd85ff2c314142a4.tar.lz nixlib-40b0b45fceea4f84ed563053bd85ff2c314142a4.tar.xz nixlib-40b0b45fceea4f84ed563053bd85ff2c314142a4.tar.zst nixlib-40b0b45fceea4f84ed563053bd85ff2c314142a4.zip |
jailbreak-cabal: use native Cabal library with GHC 8.0.x or later
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix | 7 | ||||
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-head.nix | 19 |
2 files changed, 3 insertions, 23 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix index d6603ce9c23f..118d9966b68e 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix @@ -35,12 +35,7 @@ self: super: { xhtml = null; # jailbreak-cabal can use the native Cabal library. - jailbreak-cabal = super.jailbreak-cabal.override { - Cabal = null; - mkDerivation = drv: self.mkDerivation (drv // { - preConfigure = "sed -i -e 's/Cabal == 1.20\\.\\*/Cabal >= 1.23/' jailbreak-cabal.cabal"; - }); - }; + jailbreak-cabal = super.jailbreak-cabal.override { Cabal = null; }; # Older versions of QuickCheck don't support our version of Template Haskell. QuickCheck = self.QuickCheck_2_8_2; diff --git a/pkgs/development/haskell-modules/configuration-ghc-head.nix b/pkgs/development/haskell-modules/configuration-ghc-head.nix index 2f1d9b24580a..559096ebd28d 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-head.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-head.nix @@ -33,23 +33,8 @@ self: super: { unix = null; xhtml = null; - # Don't use jailbreak built with Cabal 1.22.x because of https://github.com/peti/jailbreak-cabal/issues/9. - Cabal_1_23_0_0 = overrideCabal super.Cabal_1_22_4_0 (drv: { - version = "1.23.0.0"; - src = pkgs.fetchFromGitHub { - owner = "haskell"; - repo = "cabal"; - rev = "fe7b8784ac0a5848974066bdab76ce376ba67277"; - sha256 = "1d70ryz1l49pkr70g8r9ysqyg1rnx84wwzx8hsg6vwnmg0l5am7s"; - }; - jailbreak = false; - doHaddock = false; - postUnpack = "sourceRoot+=/Cabal"; - }); - jailbreak-cabal = overrideCabal super.jailbreak-cabal (drv: { - executableHaskellDepends = [ self.Cabal_1_23_0_0 ]; - preConfigure = "sed -i -e 's/Cabal == 1.20\\.\\*/Cabal >= 1.23/' jailbreak-cabal.cabal"; - }); + # jailbreak-cabal can use the native Cabal library. + jailbreak-cabal = super.jailbreak-cabal.override { Cabal = null; }; # haddock: No input file(s). nats = dontHaddock super.nats; |