git.iko.soy/typeable/nixpkgs
on master help sign in
shadowsocks-rust: fix build (#163552)

Co-authored-by: Ivv <41924494+IvarWithoutBones@users.noreply.github.com>

commit5e3ca94dc35263024a5e56ba710e986d7cada2f5 authorSandro <sandro.jaeckel@gmail.com> dateFri 11 Mar 2022, 17:06 (5 years ago) parent0975400
1 file changed+5−2
pkgs/tools/networking/shadowsocks-rust/default.nix+5−2
pkgs/tools/networking/shadowsocks-rust/default.nix+5−2
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, libiconv }:
1+{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, CoreServices, libiconv }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "shadowsocks-rust";
@@ -15,7 +15,10 @@ rustPlatform.buildRustPackage rec {
1515
1616 RUSTC_BOOTSTRAP = 1;
1717
18− buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
18+ nativeBuildInputs = [ pkg-config ];
19+
20+ buildInputs = [ openssl ]
21+ ++ lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
1922
2023 cargoBuildFlags = [
2124 "--features=aead-cipher-extra,local-dns,local-http-native-tls,local-redir,local-tun"