From d393b899651e19de77a3215eb4b99eb4cd6c402f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 19 Oct 2018 11:50:15 +0200 Subject: [PATCH] stack: prefer the ghc-8.6.1 version Building stack with ghc-8.4.x requires a whole lot of version overrides -- most notably Cabal 2.4.x --, so we don't bother and just use the one built with the latest compiler instead. --- pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix | 4 ++++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix index 49c3623d5d6..8d0669ca2ac 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix @@ -56,4 +56,8 @@ self: super: { }; in appendPatch super.hadoop-rpc patch; + # Version 1.9.1 needs Cabal 2.4.x or later, so + # we use the one from the ghc-8.6.1 package set. + stack = markBroken super.stack; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e4ef165c644..68fe5b5d99c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6837,7 +6837,7 @@ with pkgs; cabal-install = haskell.lib.justStaticExecutables haskellPackages.cabal-install; - stack = haskell.lib.justStaticExecutables haskellPackages.stack; + stack = haskell.lib.justStaticExecutables haskell.packages.ghc861.stack; hlint = haskell.lib.justStaticExecutables haskellPackages.hlint; all-cabal-hashes = callPackage ../data/misc/hackage { };