diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index da1ee6b9b27be..d593d138519c6 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -3115,4 +3115,20 @@ self: super: { doJailbreak ]; + # 2024-08-09: Apply optparse-applicative compat fix from master branch + # https://github.com/NorfairKing/feedback/commit/9368468934a4d8bd94709bdcb1116210b162bab8 + feedback = overrideCabal (drv: assert drv.version == "0.1.0.5"; { + postPatch = drv.postPatch or "" + '' + substituteInPlace src/Feedback/Loop/OptParse.hs \ + --replace-fail '(uncurry loopConfigLine)' '(pure . uncurry loopConfigLine)' + ''; + }) (doDistribute (super.feedback.overrideScope (self: super: { + # 2024-08-09: The stackage versions of safe-coloured-text* are old and broken + safe-coloured-text = unmarkBroken self.safe-coloured-text_0_3_0_2; + safe-coloured-text-gen = unmarkBroken self.safe-coloured-text-gen_0_0_0_3; + safe-coloured-text-layout = unmarkBroken self.safe-coloured-text-layout_0_2_0_0; + safe-coloured-text-layout-gen = unmarkBroken self.safe-coloured-text-layout-gen_0_0_0_1; + safe-coloured-text-terminfo = unmarkBroken self.safe-coloured-text-terminfo_0_3_0_0; + }))); + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index b72a5ea67a250..a91c38b8ddae6 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1345,6 +1345,9 @@ self: super: builtins.intersectAttrs super { halide-haskell = super.halide-haskell.override { Halide = pkgs.halide; }; + feedback = self.generateOptparseApplicativeCompletions [ "feedback" ] + (enableSeparateBinOutput super.feedback); + # Sydtest has a brittle test suite that will only work with the exact # versions that it ships with. sydtest = dontCheck super.sydtest;