2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, olm, libsignal-ffi }:
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
buildGoModule rec {
|
2021-04-25 03:57:28 +00:00
|
|
|
pname = "mautrix-signal";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.6.3";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "mautrix";
|
|
|
|
repo = "signal";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-KBb/rLYM2ne4VD/bPy/lcXD0avCx3J74e3zDcmg+Dzs=";
|
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-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-DDcz4O3RhV6OVI+qC/LkDW/UsE5jOAn5t/gmILxHx1s=";
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Matrix-Signal puppeting bridge";
|
2021-04-25 03:57:28 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|