diff options
author | Peter Simons <simons@cryp.to> | 2016-01-16 17:40:19 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2016-01-16 17:42:18 +0100 |
commit | 3ec7fa20fbe0acb0c7249593f2f051b9defc7778 (patch) | |
tree | b4aa2dc3358b1cb73e89998f628ed12fa9330d33 /pkgs/development | |
parent | cac1041ced351b5e49f71f4f7a10834d212caed5 (diff) | |
download | nixpkgs-3ec7fa20fbe0acb0c7249593f2f051b9defc7778.tar nixpkgs-3ec7fa20fbe0acb0c7249593f2f051b9defc7778.tar.gz nixpkgs-3ec7fa20fbe0acb0c7249593f2f051b9defc7778.tar.bz2 nixpkgs-3ec7fa20fbe0acb0c7249593f2f051b9defc7778.tar.lz nixpkgs-3ec7fa20fbe0acb0c7249593f2f051b9defc7778.tar.xz nixpkgs-3ec7fa20fbe0acb0c7249593f2f051b9defc7778.tar.zst nixpkgs-3ec7fa20fbe0acb0c7249593f2f051b9defc7778.zip |
Improve GHC 8.0.x package set configuration.
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix | 29 |
1 files changed, 13 insertions, 16 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 35710c409c7..e4bc4e5d734 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix @@ -3,6 +3,10 @@ with import ./lib.nix { inherit pkgs; }; self: super: { + + # Suitable LLVM version. + llvmPackages = pkgs.llvmPackages_35; + # Disable GHC 8.0.x core libraries. array = null; base = null; @@ -30,25 +34,18 @@ self: super: { unix = null; xhtml = null; - 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 = "18fcd9c1aaeddd9d10a25e44c0e986c9889f06a7"; - sha256 = "1bakw7h5qadjhqbkmwijg3588mjnpvdhrn8lqg8wq485cfcv6vn3"; - }; - jailbreak = false; - doHaddock = false; - postUnpack = "sourceRoot+=/Cabal"; - postPatch = '' - setupCompileFlags+=" -DMIN_VERSION_binary_0_8_0=1" - ''; - }); + # jailbreak-cabal can use the native Cabal library. jailbreak-cabal = super.jailbreak-cabal.override { - Cabal = self.Cabal_1_23_0_0; + Cabal = null; mkDerivation = drv: self.mkDerivation (drv // { preConfigure = "sed -i -e 's/Cabal == 1.20\\.\\*/Cabal >= 1.23/' jailbreak-cabal.cabal"; }); }; + + # Older versions of QuickCheck don't support our version of Template Haskell. + QuickCheck = self.QuickCheck_2_8_2; + + # https://github.com/hspec/HUnit/issues/7 + HUnit = dontCheck super.HUnit; + } |