meld: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 01:45:16 +01:00
parent 7f3b5e6de1
commit 26dc2abc2b
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -4,14 +4,14 @@
let let
minor = "3.18"; pname = "meld";
version = "${minor}.0"; version = "3.18.0";
inherit (python3Packages) python buildPythonApplication pycairo pygobject3; inherit (python3Packages) python buildPythonApplication pycairo pygobject3;
in buildPythonApplication rec { in buildPythonApplication rec {
name = "meld-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/meld/${minor}/meld-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0gi2jzgsrd5q2icyp6wphbn532ddg82nxhfxlffkniy7wnqmi0c4"; sha256 = "0gi2jzgsrd5q2icyp6wphbn532ddg82nxhfxlffkniy7wnqmi0c4";
}; };
@ -43,6 +43,12 @@ in buildPythonApplication rec {
doCheck = false; doCheck = false;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Visual diff and merge tool"; description = "Visual diff and merge tool";
homepage = http://meldmerge.org/; homepage = http://meldmerge.org/;