From 85a70fc119fe424e182ae17bd88ad3ee275f2f8d Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 6 Apr 2026 16:58:08 +0200 Subject: [PATCH] hledger-web: allow building against yesod-static 1.6.1.2 --- .../haskell-modules/configuration-common.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 300ecf5f1c9b..ff6175c03894 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1684,6 +1684,19 @@ with haskellLib; ''; }) super.hledger-flow; + # hledger-web abuses the regular bounds to exclude yesod-static 1.6.1.2 since + # it builds to fail in some build plans. This doesn't affect us at all. + hledger-web = appendPatches [ + (pkgs.fetchpatch { + name = "hledger-allow-yesod-static-1.6.1.2.patch"; + url = "https://github.com/simonmichael/hledger/commit/b06eb8b68222f48024cf02d0718039a20e070201.patch"; + hash = "sha256-IzDyAqaiqnH3d8d+ikkEpJJufgMB+ZF/1ntUJVyQyws="; + revert = true; + relative = "hledger-web"; + excludes = [ "package.yaml" ]; + }) + ] super.hledger-web; + # Chart-tests needs and compiles some modules from Chart itself Chart-tests = overrideCabal (old: { # 2025-02-13: Too strict bounds on lens < 5.3 and vector < 0.13