networkmanager-vpnc: add updateScript
This commit is contained in:
parent
47e033ace4
commit
a50dbfca79
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user