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
@ -1,4 +1,5 @@
|
||||
{ lib, stdenv
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, substituteAll
|
||||
, openfortivpn
|
||||
@ -7,23 +8,24 @@
|
||||
, file
|
||||
, glib
|
||||
, gtk3
|
||||
, gtk4
|
||||
, networkmanager
|
||||
, ppp
|
||||
, libsecret
|
||||
, withGnome ? true
|
||||
, gnome
|
||||
, fetchpatch
|
||||
, libnma
|
||||
, libnma-gtk4
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "NetworkManager-fortisslvpn";
|
||||
version = "1.2.10";
|
||||
version = "1.4.0";
|
||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "1sw66cxgs4in4cjp1cm95c5ijsk8xbbmq4ykg2jwqwgz6cf2lr3s";
|
||||
sha256 = "sFXiY0m1FrI1hXmKs+9XtDawFIAOkqiscyz8jnbF2vo=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@ -31,12 +33,6 @@ stdenv.mkDerivation rec {
|
||||
src = ./fix-paths.patch;
|
||||
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 = [
|
||||
@ -52,12 +48,15 @@ stdenv.mkDerivation rec {
|
||||
glib
|
||||
] ++ lib.optionals withGnome [
|
||||
gtk3
|
||||
gtk4
|
||||
libsecret
|
||||
libnma
|
||||
libnma-gtk4
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||
"--with-gtk4=${if withGnome then "yes" else "no"}"
|
||||
"--localstatedir=/var"
|
||||
"--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
|
||||
+++ b/src/nm-fortisslvpn-service.c
|
||||
@@ -387,7 +387,7 @@
|
||||
@@ -182,6 +182,7 @@ nm_find_openfortivpn (void)
|
||||
{
|
||||
static const char *openfortivpn_binary_paths[] =
|
||||
{
|
||||
- "/bin/openfortivpn",
|
||||
+ "@openfortivpn@/bin/openfortivpn",
|
||||
"/usr/bin/openfortivpn",
|
||||
"/usr/local/bin/openfortivpn",
|
||||
"/usr/bin/openfortivpn",
|
||||
NULL
|
||||
|
Loading…
Reference in New Issue
Block a user