gajim: add plugin installer

It's not included into repository checkout (which we use because of tests), so
get it from release tarball instead.
This commit is contained in:
Nikolay Amiantov 2018-03-07 16:42:59 +03:00
parent 906713a0b1
commit 9edd4c8835

View file

@ -22,7 +22,8 @@ with stdenv.lib;
stdenv.mkDerivation rec {
name = "gajim-${version}";
version = "0.16.9";
majorVersion = "0.16";
version = "${majorVersion}.9";
src = fetchurl {
name = "${name}.tar.bz2";
@ -31,6 +32,18 @@ stdenv.mkDerivation rec {
sha256 = "121dh906zya9n7npyk7b5xama0z3ycy9jl7l5jm39pc86h1winh3";
};
# Needed for Plugin Installer
release = fetchurl {
url = "https://gajim.org/downloads/${majorVersion}/gajim-${version}.tar.bz2";
sha256 = "0v08zdvpqaig0wxpxn1l8rsj3wr3fqvnagn8cnvch17vfqv9gcr1";
};
postUnpack = ''
tar -xaf $release
cp -r ${name}/plugins/plugin_installer gajim-${name}-*/plugins
rm -rf ${name}
'';
patches = let
# An attribute set of revisions to apply from the upstream repository.
cherries = {