diff options
author | Nikolay Amiantov <ab@fmap.me> | 2018-03-07 16:42:59 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2018-03-07 16:47:13 +0300 |
commit | 9edd4c8835ddea0b023875f6d0df201a2595de5b (patch) | |
tree | 8b63e35ddba6eb8db91fd648cf7ce4d0864fcd79 /pkgs/applications/networking/instant-messengers/gajim/default.nix | |
parent | 906713a0b12f9a035df43f3e8f502dc18e672719 (diff) |
gajim: add plugin installer
It's not included into repository checkout (which we use because of tests), so
get it from release tarball instead.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/gajim/default.nix')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/gajim/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/gajim/default.nix b/pkgs/applications/networking/instant-messengers/gajim/default.nix index 42c510495574..2f5ea0715680 100644 --- a/pkgs/applications/networking/instant-messengers/gajim/default.nix +++ b/pkgs/applications/networking/instant-messengers/gajim/default.nix @@ -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 = { |