2024-08-28 01:15:47 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
olm,
|
|
|
|
# This option enables the use of an experimental pure-Go implementation of
|
|
|
|
# the Olm protocol instead of libolm for end-to-end encryption. Using goolm
|
|
|
|
# is not recommended by the mautrix developers, but they are interested in
|
|
|
|
# people trying it out in non-production-critical environments and reporting
|
|
|
|
# any issues they run into.
|
|
|
|
withGoolm ? false,
|
|
|
|
}:
|
2019-02-20 01:05:08 +00:00
|
|
|
|
2022-02-04 12:16:47 +00:00
|
|
|
buildGoModule rec {
|
2020-06-05 21:34:25 +01:00
|
|
|
pname = "mautrix-whatsapp";
|
2024-07-19 15:42:22 +01:00
|
|
|
version = "0.10.9";
|
2019-02-20 01:05:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-07 14:21:51 +01:00
|
|
|
owner = "mautrix";
|
|
|
|
repo = "whatsapp";
|
2021-06-15 21:09:08 +01:00
|
|
|
rev = "v${version}";
|
2024-07-19 15:42:22 +01:00
|
|
|
hash = "sha256-iVILI6OGndnxIVmgNcIwHA64tkv9V3OTH3YtrCyeYx4=";
|
2019-02-20 01:05:08 +00:00
|
|
|
};
|
|
|
|
|
2024-08-28 01:15:47 +01:00
|
|
|
buildInputs = lib.optional (!withGoolm) olm;
|
|
|
|
tags = lib.optional withGoolm "goolm";
|
2020-05-01 02:59:00 +01:00
|
|
|
|
2024-07-19 15:42:22 +01:00
|
|
|
vendorHash = "sha256-DpgkSXSLF+U6zIzJ4AF2uTcFWQQYsRgkaUTG9F+bnVk=";
|
2020-08-04 01:26:27 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tulir/mautrix-whatsapp";
|
2019-02-20 01:05:08 +00:00
|
|
|
description = "Matrix <-> Whatsapp hybrid puppeting/relaybot bridge";
|
2021-08-07 14:22:16 +01:00
|
|
|
license = licenses.agpl3Plus;
|
2022-05-17 08:59:52 +01:00
|
|
|
maintainers = with maintainers; [ vskilet ma27 chvp ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "mautrix-whatsapp";
|
2019-02-20 01:05:08 +00:00
|
|
|
};
|
2020-05-22 10:32:03 +01:00
|
|
|
}
|