Skip to content

Commit 4e216d5

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)
1 parent 09317d9 commit 4e216d5

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
@@ -2695,6 +2695,20 @@ self: super:
26952695
tasty-autocollect = dontCheck super.tasty-autocollect;
26962696

26972697
postgres-websockets = lib.pipe super.postgres-websockets [
2698+
(appendPatches [
2699+
(pkgs.fetchpatch {
2700+
# Needed for the patch below to apply.
2701+
name = "remove-protolude.patch";
2702+
url = "https://github.com/diogob/postgres-websockets/commit/8027c0f6dc0c5fe6bab4e3e7730db8653b2c51cc.patch";
2703+
hash = "sha256-gefVUR+tJLrmpwnc1hf4GjLbGVe1GwNmLn5YU7qW/HY=";
2704+
})
2705+
(pkgs.fetchpatch {
2706+
# Can be removed with the next update.
2707+
name = "fix-connection-closing-when-no-write-mode-is-present.patch";
2708+
url = "https://github.com/diogob/postgres-websockets/commit/577a2f0bf4750c682c2c3c63e37d90e0ec6f95eb.patch";
2709+
hash = "sha256-7PCVbfNiJhWfmQrEjaVqbmCL5jffhofOto1RF2FVYJo=";
2710+
})
2711+
])
26982712
(addTestToolDepends [
26992713
pkgs.postgresql
27002714
pkgs.postgresqlTestHook

0 commit comments

Comments
 (0)