2017-05-19 13:42:36 +01:00
|
|
|
{ stdenv, fetchurl, openfortivpn, automake, autoconf, libtool, intltool, pkgconfig,
|
|
|
|
networkmanager, ppp, lib, libsecret, withGnome ? true, gnome3, procps, kmod }:
|
|
|
|
|
2018-03-07 05:10:00 +00:00
|
|
|
let
|
2017-05-19 13:42:36 +01:00
|
|
|
pname = "NetworkManager-fortisslvpn";
|
2018-03-13 01:03:18 +00:00
|
|
|
version = "1.2.8";
|
2018-03-07 05:10:00 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
2017-05-19 13:42:36 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-07 05:10:00 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-03-13 01:03:18 +00:00
|
|
|
sha256 = "01gvdv9dknvzx05plq863jh1xz1v8vgj5w7v9fmw5v601ggybf4w";
|
2017-05-19 13:42:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openfortivpn networkmanager ppp libtool libsecret ]
|
2018-02-25 02:23:58 +00:00
|
|
|
++ stdenv.lib.optionals withGnome [ gnome3.gtk gnome3.libgnome-keyring gnome3.gconf gnome3.networkmanagerapplet ];
|
2017-05-19 13:42:36 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ automake autoconf intltool pkgconfig ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"${if withGnome then "--with-gnome" else "--without-gnome"}"
|
|
|
|
"--disable-static"
|
|
|
|
"--localstatedir=/tmp"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace "src/nm-fortisslvpn-service.c" \
|
|
|
|
--replace "/bin/openfortivpn" "${openfortivpn}/bin/openfortivpn"
|
|
|
|
'';
|
|
|
|
|
2018-03-07 05:10:00 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "networkmanager-fortisslvpn";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-05-19 13:42:36 +01:00
|
|
|
meta = {
|
|
|
|
description = "NetworkManager's FortiSSL plugin";
|
|
|
|
inherit (networkmanager.meta) maintainers platforms;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|