diff --git a/pkgs/servers/mautrix-whatsapp/default.nix b/pkgs/servers/mautrix-whatsapp/default.nix index 1ee491acebef..f93054b28665 100644 --- a/pkgs/servers/mautrix-whatsapp/default.nix +++ b/pkgs/servers/mautrix-whatsapp/default.nix @@ -2,18 +2,30 @@ buildGoModule { pname = "mautrix-whatsapp-unstable"; - version = "2020-05-21"; + version = "2020-05-27"; src = fetchFromGitHub { owner = "tulir"; repo = "mautrix-whatsapp"; - rev = "b4949eec5982643502bb9787cf5e2872a78807c1"; - sha256 = "1hjqxqfza6r7fsxr4fgwhfdwjzligxk416692xi4pavd5krfxxmd"; + rev = "7cf19b0908dec6cb8239aebc3f79ee88dccbfc51"; + sha256 = "14cadqvbcjd9vp6dix3jzn0l071r3i9sz0lwpppgzpid8mg9zbx4"; }; buildInputs = [ olm ]; - vendorSha256 = "0ix65b48cpx6vkqmjizzij7zl8h2kjkfsa0s42vnmjdlmsv7yn42"; + 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";