summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-02-03 05:41:11 -0500
committerGitHub <noreply@github.com>2023-02-03 05:41:11 -0500
commit7cd7146780420133f4eef48bdfe668d1817d111b (patch)
treec7890c1d82c3dfbdeb361585681f3ae2966c0fee /pkgs/tools
parent8f21d403f806fe38d57d65db1ea83c243aabdee9 (diff)
parent794d06eca234ba2c1a75e37b8f9c11d7cf9e100b (diff)
Merge pull request #214126 from NickCao/ss-rust
shadowsocks-rust: enable more optional features
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/shadowsocks-rust/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/tools/networking/shadowsocks-rust/default.nix b/pkgs/tools/networking/shadowsocks-rust/default.nix
index d4e2b590b08c..f478173123fa 100644
--- a/pkgs/tools/networking/shadowsocks-rust/default.nix
+++ b/pkgs/tools/networking/shadowsocks-rust/default.nix
@@ -18,8 +18,17 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security CoreServices ];
- cargoBuildFlags = [
- "--features=aead-cipher-extra,local-dns,local-http-native-tls,local-redir,local-tun"
+ cargoBuildFeatures = [
+ "trust-dns"
+ "local-http-native-tls"
+ "local-tunnel"
+ "local-socks4"
+ "local-redir"
+ "local-dns"
+ "local-tun"
+ "aead-cipher-extra"
+ "aead-cipher-2022"
+ "aead-cipher-2022-extra"
];
# all of these rely on connecting to www.example.com:80