nixpkgs-suyu/pkgs/tools/networking/shadowsocks-rust/default.nix

38 lines
990 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, libiconv }:
2019-03-02 01:59:49 +01:00
rustPlatform.buildRustPackage rec {
pname = "shadowsocks-rust";
2021-11-01 06:18:57 +01:00
version = "1.11.2";
2019-03-02 01:59:49 +01:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "shadowsocks";
repo = pname;
2021-11-01 06:18:57 +01:00
sha256 = "0ry3zfwxs5j243jpbp5ymnz14ycyk6gpgb50lcazhn1yy52p8wac";
2019-03-02 01:59:49 +01:00
};
2021-11-01 06:18:57 +01:00
cargoSha256 = "1hvrp3zf5h33j6fgqyzn2jvjbyi8c8pyqwrj5wg3lw38h0z5rvaj";
2020-05-15 11:20:00 +02:00
RUSTC_BOOTSTRAP = 1;
2019-03-02 01:59:49 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
2021-11-01 06:18:57 +01:00
# all of these rely on connecting to www.example.com:80
checkFlags = [
"--skip=http_proxy"
"--skip=tcp_tunnel"
"--skip=udp_tunnel"
"--skip=udp_relay"
"--skip=socks4_relay_connect"
"--skip=socks5_relay_aead"
"--skip=socks5_relay_stream"
];
2019-03-02 01:59:49 +01:00
meta = with lib; {
homepage = "https://github.com/shadowsocks/shadowsocks-rust";
2019-03-02 01:59:49 +01:00
description = "A Rust port of shadowsocks";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}