2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, olm, libsignal-ffi }:
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildGoModule {
|
2021-04-25 03:57:28 +00:00
|
|
|
pname = "mautrix-signal";
|
2024-01-02 11:29:13 +00:00
|
|
|
# mautrix-signal's latest released version v0.4.3 still uses the Python codebase
|
|
|
|
# which is broken for new devices, see https://github.com/mautrix/signal/issues/388.
|
|
|
|
# The new Go version fixes this by using the official libsignal as a library and
|
|
|
|
# can be upgraded to directly from the Python version.
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "unstable-2024-01-31";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "mautrix";
|
|
|
|
repo = "signal";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "103666990f30a692c63dd84a499b0dd390cef8a4";
|
|
|
|
hash = "sha256-UttLMI+jX5PNG02vs7Dty8pxdko2aM0sVB/90eWwmYw=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
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
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
vendorHash = "sha256-LKs/9yCJ7alKQh1VYQsPEg7y+ugZwUnnJh2l4IEjbaQ=";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/mautrix/signal";
|
2021-04-25 03:57:28 +00:00
|
|
|
description = "A Matrix-Signal puppeting bridge";
|
|
|
|
license = licenses.agpl3Plus;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ expipiplus1 niklaskorz ma27 ];
|
|
|
|
mainProgram = "mautrix-signal";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|