git.iko.soy/typeable/nixpkgs
on master help sign in
gajim: add plugin installer

It's not included into repository checkout (which we use because of tests), so get it from release tarball instead.

commit9edd4c8835ddea0b023875f6d0df201a2595de5b authorNikolay Amiantov <ab@fmap.me> dateWed 7 Mar 2018, 16:42 (9 years ago) parent906713a
1 file changed+14−1
pkgs/applications/networking/instant-messengers/gajim/default.nix+14−1
pkgs/applications/networking/instant-messengers/gajim/default.nix+14−1
@@ -22,7 +22,8 @@ with stdenv.lib;
2222
2323stdenv.mkDerivation rec {
2424 name = "gajim-${version}";
25− version = "0.16.9";
25+ majorVersion = "0.16";
26+ version = "${majorVersion}.9";
2627
2728 src = fetchurl {
2829 name = "${name}.tar.bz2";
@@ -31,6 +32,18 @@ stdenv.mkDerivation rec {
3132 sha256 = "121dh906zya9n7npyk7b5xama0z3ycy9jl7l5jm39pc86h1winh3";
3233 };
3334
35+ # Needed for Plugin Installer
36+ release = fetchurl {
37+ url = "https://gajim.org/downloads/${majorVersion}/gajim-${version}.tar.bz2";
38+ sha256 = "0v08zdvpqaig0wxpxn1l8rsj3wr3fqvnagn8cnvch17vfqv9gcr1";
39+ };
40+
41+ postUnpack = ''
42+ tar -xaf $release
43+ cp -r ${name}/plugins/plugin_installer gajim-${name}-*/plugins
44+ rm -rf ${name}
45+ '';
46+
3447 patches = let
3548 # An attribute set of revisions to apply from the upstream repository.
3649 cherries = {