From b0270dfcec088c15e7537fdd20ff1e0d42e95587 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 8 Feb 2018 22:51:25 -0500 Subject: [PATCH] haskell-securemem: fix build with GHC 8.4 --- .../haskell-modules/configuration-ghc-8.4.x.nix | 9 +++++++++ 1 file changed, 9 insertions(+) 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 4781ff6d3aec..ab487eb6edf5 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix @@ -906,4 +906,13 @@ self: super: { # https://github.com/haskell-hvr/deepseq-generics/pull/4 deepseq-generics = doJailbreak super.deepseq-generics; + + # SMP compat + # https://github.com/vincenthz/hs-securemem/pull/12 + securemem = + let patch = pkgs.fetchpatch + { url = https://github.com/vincenthz/hs-securemem/commit/6168d90b00bfc6a559d3b9160732343644ef60fb.patch; + sha256 = "0pfjmq57kcvxq7mhljd40whg2g77vdlvjyycdqmxxzz1crb6pipf"; + }; + in appendPatch super.securemem patch; }