2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildGo117Module, fetchFromGitHub, olm }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildGo117Module rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
pname = "mautrix-whatsapp";
|
2021-12-21 02:18:32 +00:00
|
|
|
version = "0.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-08 23:34:03 +00:00
|
|
|
owner = "mautrix";
|
|
|
|
repo = "whatsapp";
|
2020-06-18 07:06:33 +00:00
|
|
|
rev = "v${version}";
|
2021-12-21 02:18:32 +00:00
|
|
|
sha256 = "sha256-W+5DtCp7P/0azfusv+Nt3G9VcWKPUxVJmNwSfPjxjbw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
buildInputs = [ olm ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
vendorSha256 = "sha256-Fr7yVTl8PIdr+SxXhUKG9DS18762HqL9ap6sUM3ziCQ=";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
runVend = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tulir/mautrix-whatsapp";
|
|
|
|
description = "Matrix <-> Whatsapp hybrid puppeting/relaybot bridge";
|
2021-08-08 23:34:03 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ vskilet ma27 ];
|
|
|
|
};
|
2020-05-29 06:06:01 +00:00
|
|
|
}
|