shadowsocks-libev: polarssl is now called mbedtls
This commit is contained in:
parent
916cedb063
commit
f1f6dc9b87
@ -1,8 +1,8 @@
|
|||||||
{ withPolarSSL ? false
|
{ withMbedTLS ? true
|
||||||
, enableSystemSharedLib ? true
|
, enableSystemSharedLib ? true
|
||||||
, stdenv, fetchurl, zlib
|
, stdenv, fetchurl, zlib
|
||||||
, openssl ? null
|
, openssl ? null
|
||||||
, polarssl ? null
|
, mbedtls ? null
|
||||||
, libev ? null
|
, libev ? null
|
||||||
, libsodium ? null
|
, libsodium ? null
|
||||||
, udns ? null
|
, udns ? null
|
||||||
@ -25,13 +25,13 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ zlib ]
|
buildInputs = [ zlib ]
|
||||||
++ optional (!withPolarSSL) openssl
|
++ optional (!withMbedTLS) openssl
|
||||||
++ optional withPolarSSL polarssl
|
++ optional withMbedTLS mbedtls
|
||||||
++ optional enableSystemSharedLib [libev libsodium udns];
|
++ optional enableSystemSharedLib [libev libsodium udns];
|
||||||
|
|
||||||
configureFlags = optional withPolarSSL
|
configureFlags = optional withMbedTLS
|
||||||
[ "--with-crypto-library=polarssl"
|
[ "--with-crypto-library=mbedtls"
|
||||||
"--with-polarssl=${polarssl}"
|
"--with-mbedtls=${mbedtls}"
|
||||||
]
|
]
|
||||||
++ optional enableSystemSharedLib "--enable-system-shared-lib";
|
++ optional enableSystemSharedLib "--enable-system-shared-lib";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user