2020-05-29 06:06:01 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, olm }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule {
|
|
|
|
pname = "mautrix-whatsapp-unstable";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "2020-05-27";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tulir";
|
|
|
|
repo = "mautrix-whatsapp";
|
2020-05-29 06:06:01 +00:00
|
|
|
rev = "7cf19b0908dec6cb8239aebc3f79ee88dccbfc51";
|
|
|
|
sha256 = "14cadqvbcjd9vp6dix3jzn0l071r3i9sz0lwpppgzpid8mg9zbx4";
|
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
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
vendorSha256 = "01psqvxkf13had7gkg1cbzf2flac4a6ivlb7vfzw7s50vhwkb95d";
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/tulir/mautrix-whatsapp";
|
|
|
|
description = "Matrix <-> Whatsapp hybrid puppeting/relaybot bridge";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ vskilet ma27 ];
|
|
|
|
};
|
2020-05-29 06:06:01 +00:00
|
|
|
}
|