2018-08-09 16:24:34 +01:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, networkmanager, strongswanNM
|
2019-03-09 11:41:12 +00:00
|
|
|
, gtk3, gnome3, libsecret }:
|
2016-08-25 20:58:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-09 16:24:34 +01:00
|
|
|
pname = "NetworkManager-strongswan";
|
2019-06-10 02:45:16 +01:00
|
|
|
version = "1.4.5";
|
2016-08-25 20:58:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://download.strongswan.org/NetworkManager/${pname}-${version}.tar.bz2";
|
2019-06-10 02:45:16 +01:00
|
|
|
sha256 = "015xcj42pd84apa0j0n9r3fhldp42mj72dqvl2xf4r9gwg5nhfrl";
|
2016-08-25 20:58:56 +01:00
|
|
|
};
|
|
|
|
|
2019-03-09 11:41:12 +00:00
|
|
|
buildInputs = [ networkmanager strongswanNM libsecret gtk3 gnome3.networkmanagerapplet ];
|
2016-08-25 20:58:56 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ intltool pkgconfig ];
|
|
|
|
|
2019-09-17 08:37:29 +01:00
|
|
|
# glib-2.62 deprecations
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-DGLIB_DISABLE_DEPRECATION_WARNINGS" ];
|
2018-01-27 12:03:09 +00:00
|
|
|
|
2018-08-09 16:24:34 +01:00
|
|
|
configureFlags = [
|
2018-08-28 14:07:39 +01:00
|
|
|
"--without-libnm-glib"
|
2018-08-09 16:24:34 +01:00
|
|
|
"--with-charon=${strongswanNM}/libexec/ipsec/charon-nm"
|
|
|
|
"--with-nm-libexecdir=$(out)/libexec"
|
|
|
|
"--with-nm-plugindir=$(out)/lib/NetworkManager"
|
|
|
|
];
|
2016-08-25 20:58:56 +01:00
|
|
|
|
2018-08-09 16:24:34 +01:00
|
|
|
PKG_CONFIG_LIBNM_VPNSERVICEDIR = "$(out)/lib/NetworkManager/VPN";
|
2017-10-24 22:55:05 +01:00
|
|
|
|
2018-08-09 16:24:34 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-08-25 20:58:56 +01:00
|
|
|
description = "NetworkManager's strongswan plugin";
|
|
|
|
inherit (networkmanager.meta) platforms;
|
2018-08-09 16:24:34 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-25 20:58:56 +01:00
|
|
|
};
|
|
|
|
}
|