Skip to content

Commit

Permalink
gajim: add plugin installer
Browse files Browse the repository at this point in the history
It's not included into repository checkout (which we use because of tests), so
get it from release tarball instead.
  • Loading branch information
abbradar committed Mar 7, 2018
1 parent 906713a commit 9edd4c8
Showing 1 changed file with 14 additions and 1 deletion.
Expand Up @@ -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";
Expand All @@ -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 = {
Expand Down

0 comments on commit 9edd4c8

Please sign in to comment.