From a50dbfca7971c62b3f3f2a94c85c4d836a00ff98 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 7 Mar 2018 06:10:57 +0100 Subject: [PATCH] networkmanager-vpnc: add updateScript --- pkgs/tools/networking/network-manager/vpnc.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/networking/network-manager/vpnc.nix b/pkgs/tools/networking/network-manager/vpnc.nix index 8d69415313d..81d899527e7 100644 --- a/pkgs/tools/networking/network-manager/vpnc.nix +++ b/pkgs/tools/networking/network-manager/vpnc.nix @@ -1,14 +1,13 @@ { stdenv, fetchurl, vpnc, intltool, pkgconfig, networkmanager, libsecret , withGnome ? true, gnome3, procps, kmod }: - -stdenv.mkDerivation rec { - name = "${pname}${if withGnome then "-gnome" else ""}-${version}"; +let pname = "NetworkManager-vpnc"; - major = "1.2"; - version = "${major}.4"; + version = "1.2.4"; +in stdenv.mkDerivation rec { + name = "${pname}${if withGnome then "-gnome" else ""}-${version}"; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${major}/${pname}-${version}.tar.xz"; + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; sha256 = "39c7516418e90208cb534c19628ce40fd50eba0a08b2ebaef8da85720b10fb05"; }; @@ -31,6 +30,13 @@ stdenv.mkDerivation rec { --replace "/sbin/modprobe" "${kmod}/bin/modprobe" ''; + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + attrPath = "networkmanager-vpnc"; + }; + }; + meta = { description = "NetworkManager's VPNC plugin"; inherit (networkmanager.meta) maintainers platforms;