@ -1,8 +1,14 @@
{ stdenv , fetchurl , pkgconfig , vpnc , openssl ? null , gnutls ? null , gmp , libxml2 , stoken , zlib } :
{ stdenv , fetchurl , pkgconfig , openssl ? null , gnutls ? null , gmp , libxml2 , stoken , zlib , fetchgit , darwin } :
assert ( openssl != null ) == ( gnutls == null ) ;
stdenv . mkDerivation rec {
let vpnc = fetchgit {
url = " g i t : / / g i t . i n f r a d e a d . o r g / u s e r s / d w m w 2 / v p n c - s c r i p t s . g i t " ;
rev = " c 8 4 f b 8 e 5 a 5 2 3 a 6 4 7 a 0 1 a 1 2 2 9 a 9 1 0 4 d b 9 3 4 e 1 9 f 0 0 " ;
sha256 = " 0 1 x d c l x 0 y 3 x 6 6 m p b d r 7 7 n 4 i l a p w z j z 4 7 5 h 3 2 q 8 8 m l 9 g n q 6 p h j x r s " ;
} ;
in stdenv . mkDerivation rec {
pname = " o p e n c o n n e c t " ;
version = " 8 . 0 5 " ;
@ -14,21 +20,23 @@ stdenv.mkDerivation rec {
} ;
outputs = [ " o u t " " d e v " ] ;
configureFlags = [
" - - w i t h - v p n c - s c r i p t = ${ vpnc } / e t c / v p n c / vp n c - s c r i p t "
" - - w i t h - v p n c - s c r i p t = ${ vpnc } / v p n c - s c r i p t "
" - - d i s a b l e - n l s "
" - - w i t h o u t - o p e n s s l - v e r s i o n - c h e c k "
] ;
buildInputs = [ openssl gnutls gmp libxml2 stoken zlib ]
++ stdenv . lib . optional stdenv . isDarwin darwin . apple_sdk . frameworks . PCSC ;
nativeBuildInputs = [ pkgconfig ] ;
propagatedBuildInputs = [ vpnc openssl gnutls gmp libxml2 stoken zlib ] ;
propagatedBuildInputs = [ vpnc ] ;
meta = {
meta = with stdenv . lib ; {
description = " V P N C l i e n t f o r C i s c o ' s A n y C o n n e c t S S L V P N " ;
homepage = http://www.infradead.org/openconnect/ ;
license = stdenv . lib . licenses . lgpl21 ;
maintainers = with stdenv . lib . maintainers ; [ pradeepchhetri ] ;
platforms = stdenv . lib . platforms . linux ;
license = licenses . lgpl21 ;
maintainers = with maintainers ; [ pradeepchhetri tricktron ] ;
platforms = stdenv . lib . platforms . linux ++ stdenv . lib . platforms . darwin ;
} ;
}