networkmanagerapplet: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-07 06:09:32 +01:00
parent 92a77abd31
commit 92e7762b36
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -4,14 +4,14 @@
, udev, libgudev, hicolor-icon-theme, jansson, wrapGAppsHook, webkitgtk
, libindicator-gtk3, libappindicator-gtk3, withGnome ? false }:
stdenv.mkDerivation rec {
name = "${pname}-${major}.${minor}";
let
pname = "network-manager-applet";
major = "1.8";
minor = "6";
version = "1.8.6";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${major}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0c4wxwxpa7wlskvnqaqfa7mmc0c6a2pj7jcvymcchjnq4wn9wx01";
};
@ -42,6 +42,13 @@ stdenv.mkDerivation rec {
installFlagsArray=( "sysconfdir=$out/etc" )
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "networkmanagerapplet";
};
};
meta = with stdenv.lib; {
homepage = http://projects.gnome.org/NetworkManager/;
description = "NetworkManager control applet for GNOME";