From 1583cc6449f0d5c05c27963e17a9db38236b9768 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 14 Mar 2018 21:22:18 +0100 Subject: [PATCH] haskell-SHA: fix compiler crash while trying to build the test suite on i686 Fixes https://github.com/NixOS/nixpkgs/issues/36949. --- pkgs/development/haskell-modules/configuration-common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 2a0981d2a22..524e73077ad 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1010,4 +1010,10 @@ self: super: { # https://github.com/fpco/inline-c/issues/72 inline-c = dontCheck super.inline-c; + # Avoid GHC compiler crash a la https://ghc.haskell.org/trac/ghc/ticket/5361. + SHA = appendPatch super.SHA (pkgs.fetchpatch { + url = https://github.com/GaloisInc/SHA/commit/c258350e953c3de2f98c5625ac3857f1a6863afc.patch; + sha256 = "1485bbjca1wqbh3c9yqj85kmq8j7zxq79y5isxypy3r6wjpr3g6b"; + }); + }