2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, intltool, pkg-config, networkmanager, strongswanNM
|
2020-03-16 00:19:52 +00:00
|
|
|
, gtk3, gnome3, libsecret, libnma }:
|
2016-08-25 20:58:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-09 16:24:34 +01:00
|
|
|
pname = "NetworkManager-strongswan";
|
2020-05-22 22:53:54 +01:00
|
|
|
version = "1.5.2";
|
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";
|
2020-05-22 22:53:54 +01:00
|
|
|
sha256 = "0sc1yzlxjfvl58hjjw99bchqc4061i3apw254z61v22k4sajnif8";
|
2016-08-25 20:58:56 +01:00
|
|
|
};
|
|
|
|
|
2020-03-16 00:19:52 +00:00
|
|
|
buildInputs = [ networkmanager strongswanNM libsecret gtk3 libnma ];
|
2016-08-25 20:58:56 +01:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ intltool pkg-config ];
|
2016-08-25 20:58:56 +01:00
|
|
|
|
2019-09-17 08:37:29 +01:00
|
|
|
# glib-2.62 deprecations
|
2019-10-30 11:34:47 +00:00
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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
|
|
|
};
|
|
|
|
}
|