From 5e3ca94dc35263024a5e56ba710e986d7cada2f5 Mon Sep 17 00:00:00 2001 From: Sandro Date: Fri, 11 Mar 2022 17:06:31 +0100 Subject: shadowsocks-rust: fix build (#163552) Co-authored-by: Ivv <41924494+IvarWithoutBones@users.noreply.github.com> --- pkgs/tools/networking/shadowsocks-rust/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/tools/networking/shadowsocks-rust/default.nix b/pkgs/tools/networking/shadowsocks-rust/default.nix index 7d06c4ac51c..ed61740a684 100644 --- a/pkgs/tools/networking/shadowsocks-rust/default.nix +++ b/pkgs/tools/networking/shadowsocks-rust/default.nix @@ -1,4 +1,4 @@ -{ 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" -- cgit 1.4.1