gnome.networkmanager-fortisslvpn: 1.2.10 → 1.4.0
https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/-/compare/1.2.10...1.4.0
This commit is contained in:
parent
e30273b083
commit
6699fb04e9
2 changed files with 13 additions and 13 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, openfortivpn
|
, openfortivpn
|
||||||
|
@ -7,23 +8,24 @@
|
||||||
, file
|
, file
|
||||||
, glib
|
, glib
|
||||||
, gtk3
|
, gtk3
|
||||||
|
, gtk4
|
||||||
, networkmanager
|
, networkmanager
|
||||||
, ppp
|
, ppp
|
||||||
, libsecret
|
, libsecret
|
||||||
, withGnome ? true
|
, withGnome ? true
|
||||||
, gnome
|
, gnome
|
||||||
, fetchpatch
|
|
||||||
, libnma
|
, libnma
|
||||||
|
, libnma-gtk4
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "NetworkManager-fortisslvpn";
|
pname = "NetworkManager-fortisslvpn";
|
||||||
version = "1.2.10";
|
version = "1.4.0";
|
||||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1sw66cxgs4in4cjp1cm95c5ijsk8xbbmq4ykg2jwqwgz6cf2lr3s";
|
sha256 = "sFXiY0m1FrI1hXmKs+9XtDawFIAOkqiscyz8jnbF2vo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -31,12 +33,6 @@ stdenv.mkDerivation rec {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit openfortivpn;
|
inherit openfortivpn;
|
||||||
})
|
})
|
||||||
|
|
||||||
# Don't use etc/dbus-1/system.d
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/merge_requests/11.patch";
|
|
||||||
sha256 = "0l7l2r1njh62lh2pf497ibf99sgkvjsj58xr76qx3jxgq9zfw6n9";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -52,12 +48,15 @@ stdenv.mkDerivation rec {
|
||||||
glib
|
glib
|
||||||
] ++ lib.optionals withGnome [
|
] ++ lib.optionals withGnome [
|
||||||
gtk3
|
gtk3
|
||||||
|
gtk4
|
||||||
libsecret
|
libsecret
|
||||||
libnma
|
libnma
|
||||||
|
libnma-gtk4
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||||
|
"--with-gtk4=${if withGnome then "yes" else "no"}"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--enable-absolute-paths"
|
"--enable-absolute-paths"
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
|
diff --git a/src/nm-fortisslvpn-service.c b/src/nm-fortisslvpn-service.c
|
||||||
|
index 6c340d0..995c981 100644
|
||||||
--- a/src/nm-fortisslvpn-service.c
|
--- a/src/nm-fortisslvpn-service.c
|
||||||
+++ b/src/nm-fortisslvpn-service.c
|
+++ b/src/nm-fortisslvpn-service.c
|
||||||
@@ -387,7 +387,7 @@
|
@@ -182,6 +182,7 @@ nm_find_openfortivpn (void)
|
||||||
{
|
{
|
||||||
static const char *openfortivpn_binary_paths[] =
|
static const char *openfortivpn_binary_paths[] =
|
||||||
{
|
{
|
||||||
- "/bin/openfortivpn",
|
|
||||||
+ "@openfortivpn@/bin/openfortivpn",
|
+ "@openfortivpn@/bin/openfortivpn",
|
||||||
"/usr/bin/openfortivpn",
|
|
||||||
"/usr/local/bin/openfortivpn",
|
"/usr/local/bin/openfortivpn",
|
||||||
|
"/usr/bin/openfortivpn",
|
||||||
NULL
|
NULL
|
||||||
|
|
Loading…
Reference in a new issue