Commit 1682a0cf authored by Wolfgang Walther's avatar Wolfgang Walther Committed by github-actions[bot]
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.

https://github.com/diogob/postgres-websockets/pull/101#issuecomment-2881016449
(cherry picked from commit 4e216d50)
parent c46c1bba
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2712,6 +2712,20 @@ self: super:
  tasty-autocollect = dontCheck super.tasty-autocollect;

  postgres-websockets = lib.pipe super.postgres-websockets [
    (appendPatches [
      (pkgs.fetchpatch {
        # Needed for the patch below to apply.
        name = "remove-protolude.patch";
        url = "https://github.com/diogob/postgres-websockets/commit/8027c0f6dc0c5fe6bab4e3e7730db8653b2c51cc.patch";
        hash = "sha256-gefVUR+tJLrmpwnc1hf4GjLbGVe1GwNmLn5YU7qW/HY=";
      })
      (pkgs.fetchpatch {
        # Can be removed with the next update.
        name = "fix-connection-closing-when-no-write-mode-is-present.patch";
        url = "https://github.com/diogob/postgres-websockets/commit/577a2f0bf4750c682c2c3c63e37d90e0ec6f95eb.patch";
        hash = "sha256-7PCVbfNiJhWfmQrEjaVqbmCL5jffhofOto1RF2FVYJo=";
      })
    ])
    (addTestToolDepends [
      pkgs.postgresql
      pkgs.postgresqlTestHook