Skip to content

Commit 6d7682b

Browse files
committed
haskellPackages.selda-sqlite: unbreak
1 parent adb26ef commit 6d7682b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

pkgs/development/haskell-modules/configuration-common.nix

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,20 @@ self: super:
10571057
}
10581058
+ "/${name}";
10591059
# 2025-04-09: jailbreak to allow bytestring >= 0.12, text >= 2.1
1060-
jailbreak = true;
1060+
# Note: jailbreak ignores constraints under an if(flag)
1061+
postPatch = ''
1062+
check_sed() {
1063+
if ! test -s "$1"; then
1064+
echo "sed: pattern '$2' doesn't match anything" >&2
1065+
exit 1
1066+
fi
1067+
}
1068+
sed -i ${name}.cabal \
1069+
-e 's/\(bytestring\) .*/\1/w c1' \
1070+
-e 's/\(text\) .*/\1/w c2'
1071+
check_sed c1 'bytestring .*'
1072+
check_sed c2 'text .*'
1073+
'';
10611074
}) super.${name};
10621075
in
10631076
lib.genAttrs [ "selda" "selda-sqlite" "selda-json" ] mkSeldaPackage

pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5370,7 +5370,6 @@ broken-packages:
53705370
- secureUDP # failure in job https://hydra.nixos.org/build/233215410 at 2023-09-02
53715371
- SegmentTree # failure in job https://hydra.nixos.org/build/233216161 at 2023-09-02
53725372
- selda-postgresql # failure in job https://hydra.nixos.org/build/245539286 at 2024-01-02
5373-
- selda-sqlite # failure in job https://hydra.nixos.org/build/295096791 at 2025-04-22
53745373
- selectors # failure in job https://hydra.nixos.org/build/233227433 at 2023-09-02
53755374
- selenium # failure in job https://hydra.nixos.org/build/233214276 at 2023-09-02
53765375
- sel # failure in job https://hydra.nixos.org/build/255671988 at 2024-04-16

0 commit comments

Comments
 (0)