From e117482cd4e4a282c57474953e83dec2aa3619e2 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 21 Feb 2022 00:35:31 +0100 Subject: [PATCH] haskellPackages.Spock-core: patch for GHC 9.0 support --- .../haskell-modules/configuration-common.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 1f5aae0ce99f..a960627f5239 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1355,7 +1355,15 @@ self: super: { stm-containers = dontCheck super.stm-containers; # Fails with "supports custom headers" - Spock-core = dontCheck super.Spock-core; + # Patch for GHC 9.0 support + Spock-core = dontCheck (appendPatches [ + (pkgs.fetchpatch { + name = "Spock-core-GHC-9.0.patch"; + url = "https://github.com/agrafix/Spock/commit/25c75961c4aaaa2e81c9e2afd3d758f2b643f9df.patch"; + sha256 = "03854yvda7dclz60fb1b5q8qx6zq2yjbvlyj994352xsz0lz2qan"; + stripLen = 1; + }) + ] super.Spock-core); # hasura packages need some extra care graphql-engine = overrideCabal (drv: {