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-02 00:59:49 +00:00
rustPlatform.buildRustPackage rec {
pname = "shadowsocks-rust";
version = "1.10.3";
2019-03-02 00:59:49 +00:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "shadowsocks";
repo = pname;
sha256 = "1ds2270pw187hbg01lcqxw0631m0ypvbza47z5ndgn6dxprga9wk";
2019-03-02 00:59:49 +00:00
};
cargoSha256 = "0aarhv78ab3z893cgiixxjpxl6xcwi96saavnzw4zd68988lb24r";
2020-05-15 09:20:00 +00:00
RUSTC_BOOTSTRAP = 1;
2019-03-02 00:59:49 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
checkFlags = [ "--skip=http_proxy" "--skip=udp_tunnel" ];
2019-03-02 00:59:49 +00:00
meta = with lib; {
homepage = "https://github.com/shadowsocks/shadowsocks-rust";
2019-03-02 00:59:49 +00: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-02 00:59:49 +00:00
};
}