shadowsocks-libev: polarssl is now called mbedtls

This commit is contained in:
Franz Pletz 2016-07-10 01:07:08 +02:00
parent 916cedb063
commit f1f6dc9b87

View File

@ -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";