3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/network-manager/fortisslvpn/default.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

2018-08-09 15:56:46 +01:00
{ stdenv, fetchurl, substituteAll, openfortivpn, intltool, pkgconfig,
networkmanager, ppp, libsecret, withGnome ? true, gnome3 }:
let
2018-08-09 15:56:46 +01:00
pname = "NetworkManager-fortisslvpn";
2018-03-13 01:03:18 +00:00
version = "1.2.8";
in stdenv.mkDerivation rec {
2018-08-09 15:56:46 +01:00
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
src = fetchurl {
2018-08-09 15:56:46 +01: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";
};
2018-08-09 15:56:46 +01:00
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit openfortivpn;
})
];
buildInputs = [ openfortivpn networkmanager ppp ]
++ stdenv.lib.optionals withGnome [ gnome3.gtk libsecret gnome3.networkmanagerapplet ];
2018-08-09 15:56:46 +01:00
nativeBuildInputs = [ intltool pkgconfig ];
configureFlags = [
"--without-libnm-glib"
2018-08-09 15:56:46 +01:00
"--with-gnome=${if withGnome then "yes" else "no"}"
"--localstatedir=/tmp"
"--enable-absolute-paths"
];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "networkmanager-fortisslvpn";
};
};
2018-08-09 15:56:46 +01:00
meta = with stdenv.lib; {
description = "NetworkManager's FortiSSL plugin";
inherit (networkmanager.meta) maintainers platforms;
2018-08-09 15:56:46 +01:00
license = licenses.gpl2;
};
}