nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 41 lines 1.3 kB view raw
1{ stdenv, fetchurl, pkgconfig, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib, fetchgit, darwin } : 2 3assert (openssl != null) == (gnutls == null); 4 5let vpnc = fetchgit { 6 url = "git://git.infradead.org/users/dwmw2/vpnc-scripts.git"; 7 rev = "c84fb8e5a523a647a01a1229a9104db934e19f00"; 8 sha256 = "01xdclx0y3x66mpbdr77n4ilapwzjz475h32q88ml9gnq6phjxrs"; 9}; 10 11in stdenv.mkDerivation rec { 12 pname = "openconnect"; 13 version = "8.05"; 14 15 src = fetchurl { 16 urls = [ 17 "ftp://ftp.infradead.org/pub/openconnect/${pname}-${version}.tar.gz" 18 ]; 19 sha256 = "14i9q727c2zc9xhzp1a9hz3gzb5lwgsslbhircm84dnbs192jp1k"; 20 }; 21 22 outputs = [ "out" "dev" ]; 23 24 configureFlags = [ 25 "--with-vpnc-script=${vpnc}/vpnc-script" 26 "--disable-nls" 27 "--without-openssl-version-check" 28 ]; 29 30 buildInputs = [ openssl gnutls gmp libxml2 stoken zlib ] 31 ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.PCSC; 32 nativeBuildInputs = [ pkgconfig ]; 33 34 meta = with stdenv.lib; { 35 description = "VPN Client for Cisco's AnyConnect SSL VPN"; 36 homepage = http://www.infradead.org/openconnect/; 37 license = licenses.lgpl21; 38 maintainers = with maintainers; [ pradeepchhetri tricktron ]; 39 platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; 40 }; 41}