Skip to content

Commit

Permalink
mautrix-{meta,signal,whatsapp}: build with goolm
Browse files Browse the repository at this point in the history
After olm gained knownVulnerabilities in #334638, build these bridges
using the pure-Go goolm library instead of libolm bindings.
  • Loading branch information
George Macon committed Aug 26, 2024
1 parent d0e1602 commit 69f4a4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pkgs/by-name/ma/mautrix-meta/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
, fetchFromGitHub
, lib
, nixosTests
, olm
}:

buildGoModule rec {
Expand All @@ -18,7 +17,7 @@ buildGoModule rec {
hash = "sha256-whBqhdB2FSFfrbtGtq8v3pjXW7QMt+I0baHTXVGPWVg=";
};

buildInputs = [ olm ];
tags = [ "goolm" ];

vendorHash = "sha256-rP9wvF6yYW0TdQ+vQV6ZcVMxnCtqz8xRcd9v+4pYYio=";

Expand Down
5 changes: 3 additions & 2 deletions pkgs/servers/mautrix-signal/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, olm, libsignal-ffi }:
{ lib, buildGoModule, fetchFromGitHub, libsignal-ffi }:

buildGoModule rec {
pname = "mautrix-signal";
Expand All @@ -12,12 +12,13 @@ buildGoModule rec {
};

buildInputs = [
olm
# must match the version used in https://github.com/mautrix/signal/tree/main/pkg/libsignalgo
# see https://github.com/mautrix/signal/issues/401
libsignal-ffi
];

tags = [ "goolm" ];

vendorHash = "sha256-DDcz4O3RhV6OVI+qC/LkDW/UsE5jOAn5t/gmILxHx1s=";

doCheck = false;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/servers/mautrix-whatsapp/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, olm }:
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
pname = "mautrix-whatsapp";
Expand All @@ -11,7 +11,7 @@ buildGoModule rec {
hash = "sha256-iVILI6OGndnxIVmgNcIwHA64tkv9V3OTH3YtrCyeYx4=";
};

buildInputs = [ olm ];
tags = [ "goolm" ];

vendorHash = "sha256-DpgkSXSLF+U6zIzJ4AF2uTcFWQQYsRgkaUTG9F+bnVk=";

Expand Down

0 comments on commit 69f4a4c

Please sign in to comment.