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-06-05 15:53:02 +00:00
|
|
|
version = "0.6.1";
|
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-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-JybQhVej82aWcsGLKS/tCBUuy9rARSe4d+ivYEZ0ve4=";
|
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-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-LHq/CH53/Jzh49qXdoqXURqTVbSitczw3yH3KU2BMpc=";
|
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
|
|
|
};
|
|
|
|
}
|