mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Added openconnect
This commit is contained in:
parent
a7b8017583
commit
8be8701db7
27
pkgs/tools/networking/openconnect.nix
Normal file
27
pkgs/tools/networking/openconnect.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchurl, pkgconfig, vpnc, openssl, libxml2 } :
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openconnect-5.00";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"ftp://ftp.infradead.org/pub/openconnect/${name}.tar.gz"
|
||||
];
|
||||
sha256 = "8bacd8d00b2c0ecf35594a8417e695b5ed3a7757467f22f980134de81ee7713a";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
export PKG_CONFIG=${pkgconfig}/bin/pkg-config
|
||||
export LIBXML2_CFLAGS="-I ${libxml2}/include/libxml2"
|
||||
export LIBXML2_LIBS="-L${libxml2}/lib -lxml2"
|
||||
export CFLAGS="-D NO_BROKEN_DTLS_CHECK $CFLAGS"
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-vpnc-script=${vpnc}/etc/vpnc/vpnc-script"
|
||||
"--disable-nls"
|
||||
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ vpnc openssl libxml2 ];
|
||||
}
|
@ -1789,6 +1789,8 @@ let
|
||||
|
||||
vpnc = callPackage ../tools/networking/vpnc { };
|
||||
|
||||
openconnect = callPackage ../tools/networking/openconnect.nix { };
|
||||
|
||||
vtun = callPackage ../tools/networking/vtun { };
|
||||
|
||||
wbox = callPackage ../tools/networking/wbox {};
|
||||
|
Loading…
Reference in New Issue
Block a user