From 974f2122b1163de0315c51fc161cdb97b66d6111 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 15 Sep 2015 12:43:14 +0200 Subject: jailbreak-cabal: clean up overrides These changes ensure that jailbreak-cabal works correctly without further configuration even with older compilers. The exception to that rule being, naturally, versions of GHC that can't compile Cabal 1.20.x; these *do* need another override. --- pkgs/development/haskell-modules/configuration-common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/development/haskell-modules/configuration-common.nix') diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index ee8089f9063..80cf5ebd478 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -12,7 +12,7 @@ self: super: { cabal-install_1_18_1_0 = (dontCheck super.cabal-install_1_18_1_0).overrideScope (self: super: { Cabal = self.Cabal_1_18_1_6; zlib = self.zlib_0_5_4_2; }); # Link statically to avoid runtime dependency on GHC. - jailbreak-cabal = disableSharedExecutables super.jailbreak-cabal; + jailbreak-cabal = (disableSharedExecutables super.jailbreak-cabal).override { Cabal = dontJailbreak self.Cabal_1_20_0_3; }; # Apply NixOS-specific patches. ghc-paths = appendPatch super.ghc-paths ./patches/ghc-paths-nix.patch; -- cgit 1.4.1