networkmanager-fortisslvpn: add updateScript
This commit is contained in:
parent
7222006157
commit
8aa3b5c916
@ -1,14 +1,14 @@
|
||||
{ stdenv, fetchurl, openfortivpn, automake, autoconf, libtool, intltool, pkgconfig,
|
||||
networkmanager, ppp, lib, libsecret, withGnome ? true, gnome3, procps, kmod }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||
let
|
||||
pname = "NetworkManager-fortisslvpn";
|
||||
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 = "0wsbj5lvf9l1w8k5nmaqnzmldilh482bn4z4k8a3wnm62xfxgscr";
|
||||
};
|
||||
|
||||
@ -28,6 +28,13 @@ stdenv.mkDerivation rec {
|
||||
--replace "/bin/openfortivpn" "${openfortivpn}/bin/openfortivpn"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "networkmanager-fortisslvpn";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "NetworkManager's FortiSSL plugin";
|
||||
inherit (networkmanager.meta) maintainers platforms;
|
||||
|
Loading…
Reference in New Issue
Block a user