5fd613599f
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 1.4.3 with grep in /nix/store/y2jkp10za0xpb7slalbfp3qyh9sgls70-NetworkManager-strongswan-1.4.3 - directory tree listing: https://gist.github.com/3d79a64230389ed5f84ff788ad4c56f1
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, fetchurl, intltool, pkgconfig, networkmanager, strongswanNM, procps
|
|
, gnome3, libgnome-keyring, libsecret }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "NetworkManager-strongswan";
|
|
version = "1.4.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.strongswan.org/NetworkManager/${name}.tar.bz2";
|
|
sha256 = "0jzl52wmh2q2djb1s546kxliy7s6akhi5bx6rp2ppjfk3wbi2a2l";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "s,nm_plugindir=.*,nm_plugindir=$out/lib/NetworkManager," "configure"
|
|
sed -i "s,nm_libexecdir=.*,nm_libexecdir=$out/libexec," "configure"
|
|
'';
|
|
|
|
buildInputs = [ networkmanager strongswanNM libsecret ]
|
|
++ (with gnome3; [ gtk libgnome-keyring networkmanagerapplet ]);
|
|
|
|
nativeBuildInputs = [ intltool pkgconfig ];
|
|
|
|
# Fixes deprecation errors with networkmanager 1.10.2
|
|
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
|
|
|
preConfigure = ''
|
|
substituteInPlace "configure" \
|
|
--replace "/sbin/sysctl" "${procps}/bin/sysctl"
|
|
'';
|
|
|
|
configureFlags = [ "--with-charon=${strongswanNM}/libexec/ipsec/charon-nm" ];
|
|
|
|
meta = {
|
|
description = "NetworkManager's strongswan plugin";
|
|
inherit (networkmanager.meta) platforms;
|
|
};
|
|
}
|