2018-08-09 17:24:34 +02:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, networkmanager, strongswanNM
|
2019-03-09 12:41:12 +01:00
|
|
|
, gtk3, gnome3, libsecret }:
|
2016-08-25 21:58:56 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-09 17:24:34 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "NetworkManager-strongswan";
|
|
|
|
version = "1.4.4";
|
2016-08-25 21:58:56 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-08-09 17:24:34 +02:00
|
|
|
url = "https://download.strongswan.org/NetworkManager/${name}.tar.bz2";
|
|
|
|
sha256 = "1xhj5cipwbihf0cna8lpicpz7cd8fgkagpmg0xvj6pshymm5jbcd";
|
2016-08-25 21:58:56 +02:00
|
|
|
};
|
|
|
|
|
2019-03-09 12:41:12 +01:00
|
|
|
buildInputs = [ networkmanager strongswanNM libsecret gtk3 gnome3.networkmanagerapplet ];
|
2016-08-25 21:58:56 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ intltool pkgconfig ];
|
|
|
|
|
2018-01-27 13:03:09 +01:00
|
|
|
# Fixes deprecation errors with networkmanager 1.10.2
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
|
|
|
|
2018-08-09 17:24:34 +02:00
|
|
|
configureFlags = [
|
2018-08-28 15:07:39 +02:00
|
|
|
"--without-libnm-glib"
|
2018-08-09 17:24:34 +02:00
|
|
|
"--with-charon=${strongswanNM}/libexec/ipsec/charon-nm"
|
|
|
|
"--with-nm-libexecdir=$(out)/libexec"
|
|
|
|
"--with-nm-plugindir=$(out)/lib/NetworkManager"
|
|
|
|
];
|
2016-08-25 21:58:56 +02:00
|
|
|
|
2018-08-09 17:24:34 +02:00
|
|
|
PKG_CONFIG_LIBNM_VPNSERVICEDIR = "$(out)/lib/NetworkManager/VPN";
|
2017-10-24 23:55:05 +02:00
|
|
|
|
2018-08-09 17:24:34 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-08-25 21:58:56 +02:00
|
|
|
description = "NetworkManager's strongswan plugin";
|
|
|
|
inherit (networkmanager.meta) platforms;
|
2018-08-09 17:24:34 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-25 21:58:56 +02:00
|
|
|
};
|
|
|
|
}
|