From 437f2b06039d4be0b880680f34463c3ea8958937 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 7 Sep 2011 17:29:59 +0000 Subject: [PATCH] haskell-packages.nix: disable repaExamples in all instances of haskellPackages older than GHC 7.2 Without this hack, "nix-env -u *" would update repa-examples to the GHC 7.0.4 version, because the package isn't tagged with the version of the compiler. Repa and friends don't build with older GHCs anymore, though. svn path=/nixpkgs/trunk/; revision=29094 --- pkgs/top-level/haskell-packages.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 4f7642266f2..4307ffe0f25 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -194,6 +194,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatform = self.haskellPlatform_2011_2_0_1; mtl1 = self.mtl_1_1_1_1; text = self.text_0_11_1_5; + repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u }; haskellPlatform_2011_2_0_1 = @@ -235,6 +236,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); self : self.haskellPlatformArgs_2011_2_0_0 self // { haskellPlatform = self.haskellPlatform_2011_2_0_0; mtl1 = self.mtl_1_1_1_1; + repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u }; haskellPlatform_2011_2_0_0 = @@ -272,6 +274,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); haskellPlatformDefaults_2010_2_0_0 = self : self.haskellPlatformArgs_2010_2_0_0 self // { haskellPlatform = self.haskellPlatform_2010_2_0_0; + repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u }; haskellPlatform_2010_2_0_0 = @@ -308,6 +311,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); self : self.haskellPlatformArgs_2010_1_0_0 self // { haskellPlatform = self.haskellPlatform_2010_1_0_0; extensibleExceptions = self.extensibleExceptions_0_1_1_0; + repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u }; haskellPlatform_2010_1_0_0 = @@ -345,6 +349,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); self : self.haskellPlatformArgs_2009_2_0_2 self // { haskellPlatform = self.haskellPlatform_2009_2_0_2; extensibleExceptions = self.extensibleExceptions_0_1_1_0; + repaExamples = null; # don't pick this version of 'repa-examples' during nix-env -u }; haskellPlatform_2009_2_0_2 =