From 34e36a57a36ff6ca40dda978694962d69778ca8a Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Sun, 8 Mar 2026 03:46:33 +0000 Subject: [PATCH] haskellPackages.failure: fix build via forward-compat --- pkgs/development/haskell-modules/configuration-common.nix | 6 ++++++ .../haskell-modules/configuration-hackage2nix/broken.yaml | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index e02fcdca8838..a7ead648533d 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2507,6 +2507,12 @@ with haskellLib; # Unmaintained records-sop = doJailbreak super.records-sop; + failure = appendPatch (fetchpatch { + # https://github.com/snoyberg/failure/pull/5 + name = "switch-error-to-except"; + url = "https://github.com/snoyberg/failure/commit/d46bebb5afdc17a0feb268bc86adb00b7edc4cc3.patch"; + sha256 = "sha256-CDd/vvlRq1cldyH+qsJVNMiwViqKVSosr9A0ilv2gLM"; + }) (doJailbreak super.failure); # Fix build failures for ghc 9 (https://github.com/mokus0/polynomial/pull/20) polynomial = diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml index 837d64129f22..c9aca9bfa482 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml @@ -1774,7 +1774,6 @@ broken-packages: - fadno-xml # failure in job https://hydra.nixos.org/build/307518209 at 2025-09-19 - failable # failure in job https://hydra.nixos.org/build/252731566 at 2024-03-16 - failable-list # failure in job https://hydra.nixos.org/build/233198924 at 2023-09-02 - - failure # failure in job https://hydra.nixos.org/build/252738855 at 2024-03-16 - failure-detector # failure in job https://hydra.nixos.org/build/233244451 at 2023-09-02 - fake # failure in job https://hydra.nixos.org/build/233199052 at 2023-09-02 - fake-type # failure in job https://hydra.nixos.org/build/233197081 at 2023-09-02