networkmanagerapplet: add updateScript
This commit is contained in:
parent
92a77abd31
commit
92e7762b36
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user