2021-03-06 11:00:00 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, libiconv }:
|
2019-03-02 01:59:49 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "shadowsocks-rust";
|
2021-04-17 06:20:00 +02:00
|
|
|
version = "1.10.7";
|
2019-03-02 01:59:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "shadowsocks";
|
|
|
|
repo = pname;
|
2021-04-17 06:20:00 +02:00
|
|
|
sha256 = "08k5j469750bhlq49qc5nwc2jjgmy9qsm58nf2jfwhxlpflv12sc";
|
2019-03-02 01:59:49 +01:00
|
|
|
};
|
|
|
|
|
2021-04-17 06:20:00 +02:00
|
|
|
cargoSha256 = "1r8w5cdygd26m95q9qpqa85aixx25jr510hpjlllbpfvm7zjpbqk";
|
2020-05-15 11:20:00 +02:00
|
|
|
|
2021-02-23 05:20:00 +01:00
|
|
|
RUSTC_BOOTSTRAP = 1;
|
2019-03-02 01:59:49 +01:00
|
|
|
|
2021-03-06 11:00:00 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
|
2021-02-23 05:20:00 +01:00
|
|
|
|
|
|
|
checkFlags = [ "--skip=http_proxy" "--skip=udp_tunnel" ];
|
2019-03-02 01:59:49 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
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 ];
|
2021-03-06 11:00:00 +01:00
|
|
|
broken = stdenv.isAarch64; # crypto2 crate doesn't build on aarch64
|
2019-03-02 01:59:49 +01:00
|
|
|
};
|
|
|
|
}
|