nixpkgs/pkgs/tools/networking/networkmanager/strongswan/default.nix

35 lines
1.0 KiB
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ lib, stdenv, fetchurl, intltool, pkg-config, networkmanager, strongswanNM
, gtk3, gnome, libsecret, libnma }:
stdenv.mkDerivation rec {
pname = "NetworkManager-strongswan";
version = "1.5.2";
src = fetchurl {
url = "https://download.strongswan.org/NetworkManager/${pname}-${version}.tar.bz2";
sha256 = "0sc1yzlxjfvl58hjjw99bchqc4061i3apw254z61v22k4sajnif8";
};
2020-03-16 00:19:52 +00:00
buildInputs = [ networkmanager strongswanNM libsecret gtk3 libnma ];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ intltool pkg-config ];
# 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
configureFlags = [
"--without-libnm-glib"
"--with-charon=${strongswanNM}/libexec/ipsec/charon-nm"
"--with-nm-libexecdir=$(out)/libexec"
"--with-nm-plugindir=$(out)/lib/NetworkManager"
];
PKG_CONFIG_LIBNM_VPNSERVICEDIR = "$(out)/lib/NetworkManager/VPN";
meta = with lib; {
description = "NetworkManager's strongswan plugin";
inherit (networkmanager.meta) platforms;
license = licenses.gpl2Plus;
};
}