Skip to content

Commit 1682a0c

Browse files
haskellPackages.postgres-websockets: fix at run-time
Reason for the failure is still unclear and it was not possible to reproduce outside nixpkgs, yet. diogob/postgres-websockets#101 (comment) (cherry picked from commit 4e216d5)
1 parent c46c1bb commit 1682a0c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,6 +2712,20 @@ self: super:
27122712
tasty-autocollect = dontCheck super.tasty-autocollect;
27132713

27142714
postgres-websockets = lib.pipe super.postgres-websockets [
2715+
(appendPatches [
2716+
(pkgs.fetchpatch {
2717+
# Needed for the patch below to apply.
2718+
name = "remove-protolude.patch";
2719+
url = "https://github.com/diogob/postgres-websockets/commit/8027c0f6dc0c5fe6bab4e3e7730db8653b2c51cc.patch";
2720+
hash = "sha256-gefVUR+tJLrmpwnc1hf4GjLbGVe1GwNmLn5YU7qW/HY=";
2721+
})
2722+
(pkgs.fetchpatch {
2723+
# Can be removed with the next update.
2724+
name = "fix-connection-closing-when-no-write-mode-is-present.patch";
2725+
url = "https://github.com/diogob/postgres-websockets/commit/577a2f0bf4750c682c2c3c63e37d90e0ec6f95eb.patch";
2726+
hash = "sha256-7PCVbfNiJhWfmQrEjaVqbmCL5jffhofOto1RF2FVYJo=";
2727+
})
2728+
])
27152729
(addTestToolDepends [
27162730
pkgs.postgresql
27172731
pkgs.postgresqlTestHook

0 commit comments

Comments
 (0)