mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
30 lines
848 B
Nix
30 lines
848 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, libiconv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shadowsocks-rust";
|
|
version = "1.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "shadowsocks";
|
|
repo = pname;
|
|
sha256 = "sha256-l+D/0AUZZiKvV+o3NPMAz2aiCkBkS0+h/8plMDwrP9o=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-64xycLtE1zIiuuRaaivkzntQK/yXQcTaPaxoPRRk6fM=";
|
|
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
|
|
|
|
checkFlags = [ "--skip=http_proxy" "--skip=udp_tunnel" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/shadowsocks/shadowsocks-rust";
|
|
description = "A Rust port of shadowsocks";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
broken = stdenv.isAarch64; # crypto2 crate doesn't build on aarch64
|
|
};
|
|
}
|