2020-05-22 09:32:03 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, olm }:
|
2019-02-20 01:05:08 +00:00
|
|
|
|
2020-06-05 20:34:25 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mautrix-whatsapp";
|
2020-07-10 13:31:31 +00:00
|
|
|
version = "0.1.3";
|
2019-02-20 01:05:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tulir";
|
|
|
|
repo = "mautrix-whatsapp";
|
2020-06-05 20:34:25 +00:00
|
|
|
rev = "v${version}";
|
2020-07-10 13:31:31 +00:00
|
|
|
sha256 = "1qagp6jnc4n368pg4h3jr9bzpwpbnva1xyl1b1k2a7q4b5fm5yww";
|
2019-02-20 01:05:08 +00:00
|
|
|
};
|
|
|
|
|
2020-05-22 09:32:03 +00:00
|
|
|
buildInputs = [ olm ];
|
2020-05-01 01:59:00 +00:00
|
|
|
|
2020-07-10 13:31:31 +00:00
|
|
|
vendorSha256 = "0ixfawfavv5r1d01d4gmj87vf5vv6p3f7kv4rkhfv48ys0j0437a";
|
2020-05-27 12:59:41 +00:00
|
|
|
|
|
|
|
overrideModAttrs = _: {
|
|
|
|
postBuild = ''
|
|
|
|
rm -r vendor/github.com/chai2010/webp
|
|
|
|
cp -r --reflink=auto ${fetchFromGitHub {
|
|
|
|
owner = "chai2010";
|
|
|
|
repo = "webp";
|
|
|
|
rev = "3da79ec3d682694d42bfd211db18fc1343c07cd7";
|
|
|
|
sha256 = "0gh3g52vz8na153mjmxkl80g3dvrcjw77xpjs1c02vagpj9jyw46";
|
|
|
|
}} vendor/github.com/chai2010/webp
|
|
|
|
'';
|
|
|
|
};
|
2019-02-20 01:05:08 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tulir/mautrix-whatsapp";
|
2019-02-20 01:05:08 +00:00
|
|
|
description = "Matrix <-> Whatsapp hybrid puppeting/relaybot bridge";
|
|
|
|
license = licenses.agpl3;
|
2019-09-04 16:40:46 +00:00
|
|
|
maintainers = with maintainers; [ vskilet ma27 ];
|
2019-02-20 01:05:08 +00:00
|
|
|
};
|
2020-05-22 09:32:03 +00:00
|
|
|
}
|