4fc29cb41f
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ stdenv, buildGoModule, fetchFromGitHub, olm }:
|
|
|
|
buildGoModule {
|
|
pname = "mautrix-whatsapp-unstable";
|
|
version = "2020-05-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tulir";
|
|
repo = "mautrix-whatsapp";
|
|
rev = "7cf19b0908dec6cb8239aebc3f79ee88dccbfc51";
|
|
sha256 = "14cadqvbcjd9vp6dix3jzn0l071r3i9sz0lwpppgzpid8mg9zbx4";
|
|
};
|
|
|
|
buildInputs = [ olm ];
|
|
|
|
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
|
|
'';
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|