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

30 lines
850 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, libiconv }:
2019-03-01 16:59:49 -08:00
rustPlatform.buildRustPackage rec {
pname = "shadowsocks-rust";
2021-04-09 21:20:00 -07:00
version = "1.10.5";
2019-03-01 16:59:49 -08:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "shadowsocks";
repo = pname;
2021-04-09 21:20:00 -07:00
sha256 = "0nagn7792qniczzv0912h89bn8rm8hyikdiw7cqwknx0hw8dwz1z";
2019-03-01 16:59:49 -08:00
};
2021-04-09 21:20:00 -07:00
cargoSha256 = "0arqc0wnvfkmk8xzsdc6fvd1adazrw950ld8xyh7r588pyphjmhn";
2020-05-15 02:20:00 -07:00
RUSTC_BOOTSTRAP = 1;
2019-03-01 16:59:49 -08:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
checkFlags = [ "--skip=http_proxy" "--skip=udp_tunnel" ];
2019-03-01 16:59:49 -08:00
meta = with lib; {
homepage = "https://github.com/shadowsocks/shadowsocks-rust";
2019-03-01 16:59:49 -08:00
description = "A Rust port of shadowsocks";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
broken = stdenv.isAarch64; # crypto2 crate doesn't build on aarch64
2019-03-01 16:59:49 -08:00
};
}