2022-04-26 12:16:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, intltool
|
|
|
|
, pkg-config
|
|
|
|
, networkmanager
|
|
|
|
, strongswanNM
|
|
|
|
, gtk3
|
2022-04-26 14:53:47 +00:00
|
|
|
, gtk4
|
2022-04-26 12:16:37 +00:00
|
|
|
, libsecret
|
|
|
|
, libnma
|
2022-04-26 14:53:47 +00:00
|
|
|
, libnma-gtk4
|
2022-04-26 12:16:37 +00:00
|
|
|
}:
|
2016-08-25 19:58:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-09 15:24:34 +00:00
|
|
|
pname = "NetworkManager-strongswan";
|
2022-04-26 14:53:47 +00:00
|
|
|
version = "1.6.0";
|
2016-08-25 19:58:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://download.strongswan.org/NetworkManager/${pname}-${version}.tar.bz2";
|
2022-04-26 14:53:47 +00:00
|
|
|
sha256 = "bbyA9qCboM9hBKMXhJWXgEFN13Fl4pY6zWZXwowlRMI=";
|
2016-08-25 19:58:56 +00:00
|
|
|
};
|
|
|
|
|
2022-04-26 12:16:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
|
|
|
pkg-config
|
|
|
|
];
|
2016-08-25 19:58:56 +00:00
|
|
|
|
2022-04-26 12:16:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
networkmanager
|
|
|
|
strongswanNM
|
|
|
|
libsecret
|
|
|
|
gtk3
|
2022-04-26 14:53:47 +00:00
|
|
|
gtk4
|
2022-04-26 12:16:37 +00:00
|
|
|
libnma
|
2022-04-26 14:53:47 +00:00
|
|
|
libnma-gtk4
|
2022-04-26 12:16:37 +00:00
|
|
|
];
|
2018-01-27 12:03:09 +00:00
|
|
|
|
2018-08-09 15:24:34 +00:00
|
|
|
configureFlags = [
|
2023-04-13 15:20:32 +00:00
|
|
|
"--disable-more-warnings" # disables -Werror
|
2018-08-09 15:24:34 +00:00
|
|
|
"--with-charon=${strongswanNM}/libexec/ipsec/charon-nm"
|
2022-04-26 12:16:37 +00:00
|
|
|
"--with-nm-libexecdir=${placeholder "out"}/libexec"
|
|
|
|
"--with-nm-plugindir=${placeholder "out"}/lib/NetworkManager"
|
2022-04-26 14:53:47 +00:00
|
|
|
"--with-gtk4"
|
2018-08-09 15:24:34 +00:00
|
|
|
];
|
2016-08-25 19:58:56 +00:00
|
|
|
|
2022-04-26 12:16:37 +00:00
|
|
|
PKG_CONFIG_LIBNM_VPNSERVICEDIR = "${placeholder "out"}/lib/NetworkManager/VPN";
|
|
|
|
|
2022-03-17 03:04:10 +00:00
|
|
|
passthru = {
|
|
|
|
networkManagerPlugin = "VPN/nm-strongswan-service.name";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-25 19:58:56 +00:00
|
|
|
description = "NetworkManager's strongswan plugin";
|
|
|
|
inherit (networkmanager.meta) platforms;
|
2018-08-09 15:24:34 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-25 19:58:56 +00:00
|
|
|
};
|
|
|
|
}
|