2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
let
|
|
|
|
webp = fetchFromGitHub {
|
|
|
|
owner = "chai2010";
|
|
|
|
repo = "webp";
|
|
|
|
rev = "19c584e49a98c31e2138c82fd0108435cd80d182";
|
|
|
|
sha256 = "1bqf1ifsfw5dwvnc9vl3dhp775qv5hgl34219lvnja0bj6pq5zks";
|
|
|
|
};
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
buildGoModule {
|
|
|
|
pname = "mautrix-whatsapp-unstable";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "2020-04-21-1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tulir";
|
|
|
|
repo = "mautrix-whatsapp";
|
2020-05-03 17:38:23 +00:00
|
|
|
rev = "e0aea74abf090bc9dc499332b28bf03640c162f8";
|
|
|
|
sha256 = "1gayjyh0x0axc1xak38zkdhvx6fy8pwlniqsirqy2mwcgkkll9i5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
vendorSha256 = "0j397zyjs7v5q2jjd3l0wz4lh1fh45whgxjp7cwgc332ch9j2010";
|
|
|
|
|
|
|
|
overrideModAttrs = (_: {
|
|
|
|
postBuild = ''
|
|
|
|
rm -r vendor/github.com/chai2010/webp
|
|
|
|
cp -r --reflink=auto ${webp} 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-15 21:57:56 +00:00
|
|
|
}
|