diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 72716e9da8cff..efebdbc3b1841 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1057,7 +1057,20 @@ self: super: } + "/${name}"; # 2025-04-09: jailbreak to allow bytestring >= 0.12, text >= 2.1 - jailbreak = true; + # Note: jailbreak ignores constraints under an if(flag) + postPatch = '' + check_sed() { + if ! test -s "$1"; then + echo "sed: pattern '$2' doesn't match anything" >&2 + exit 1 + fi + } + sed -i ${name}.cabal \ + -e 's/\(bytestring\) .*/\1/w c1' \ + -e 's/\(text\) .*/\1/w c2' + check_sed c1 'bytestring .*' + check_sed c2 'text .*' + ''; }) super.${name}; in lib.genAttrs [ "selda" "selda-sqlite" "selda-json" ] mkSeldaPackage diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml index 1dfd4600a3416..b86c05f8f5fb2 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml @@ -5370,7 +5370,6 @@ broken-packages: - secureUDP # failure in job https://hydra.nixos.org/build/233215410 at 2023-09-02 - SegmentTree # failure in job https://hydra.nixos.org/build/233216161 at 2023-09-02 - selda-postgresql # failure in job https://hydra.nixos.org/build/245539286 at 2024-01-02 - - selda-sqlite # failure in job https://hydra.nixos.org/build/295096791 at 2025-04-22 - selectors # failure in job https://hydra.nixos.org/build/233227433 at 2023-09-02 - selenium # failure in job https://hydra.nixos.org/build/233214276 at 2023-09-02 - sel # failure in job https://hydra.nixos.org/build/255671988 at 2024-04-16