From 5760d29dedabd7206ad0397e4487a5f1670b29f6 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Wed, 21 Jan 2026 11:16:08 +0100 Subject: [PATCH] haskellPackages.yesod-static: fix test suite with mime-types >= 0.1.2.1 --- .../haskell-modules/configuration-common.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 72e2a346197e..523179d3fda7 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -351,6 +351,17 @@ with haskellLib; # https://github.com/yesodweb/shakespeare/issues/294 shakespeare = dontCheck super.shakespeare; + # Fixes test suite with mime-types >= 0.1.2.1 + yesod-static = appendPatches [ + (pkgs.fetchpatch { + name = "yesod-static-mime-types-0.1.2.1.patch"; + url = "https://github.com/yesodweb/yesod/commit/5466dc3b984efcd1f963ae3c6c3a5241c4f625ee.patch"; + sha256 = "sha256-UN8kdnSsZPRt8PdQdortd50cB+j9kUOmhECl6lfxIxI="; + includes = [ "**/EmbedProductionTest.hs" ]; + stripLen = 1; + }) + ] super.yesod-static; + # Work around -Werror failures until a more permanent solution is released # https://github.com/haskell-cryptography/HsOpenSSL/issues/88 # https://github.com/haskell-cryptography/HsOpenSSL/issues/93