2013-05-31 20:19:56 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, vpnc, openssl, libxml2 } :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-25 13:13:51 +01:00
|
|
|
name = "openconnect-5.02";
|
2013-05-31 20:19:56 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
|
|
|
"ftp://ftp.infradead.org/pub/openconnect/${name}.tar.gz"
|
|
|
|
];
|
2014-01-25 13:13:51 +01:00
|
|
|
sha256 = "1y7dn42gd3763sgwv2j72xy9hsikd6y9x142g84kwdbn0y0psgi4";
|
2013-05-31 20:19:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export PKG_CONFIG=${pkgconfig}/bin/pkg-config
|
|
|
|
export LIBXML2_CFLAGS="-I ${libxml2}/include/libxml2"
|
|
|
|
export LIBXML2_LIBS="-L${libxml2}/lib -lxml2"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-vpnc-script=${vpnc}/etc/vpnc/vpnc-script"
|
|
|
|
"--disable-nls"
|
2013-06-08 12:26:23 +02:00
|
|
|
"--without-openssl-version-check"
|
2013-05-31 20:19:56 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ vpnc openssl libxml2 ];
|
|
|
|
}
|