Unverified Commit 5e3ca94d authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

shadowsocks-rust: fix build (#163552)

parent 09754000
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, libiconv }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, CoreServices, libiconv }:

rustPlatform.buildRustPackage rec {
  pname = "shadowsocks-rust";
@@ -15,7 +15,10 @@ rustPlatform.buildRustPackage rec {

  RUSTC_BOOTSTRAP = 1;

  buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ openssl ]
    ++ lib.optionals stdenv.isDarwin [ CoreServices libiconv ];

  cargoBuildFlags = [
    "--features=aead-cipher-extra,local-dns,local-http-native-tls,local-redir,local-tun"