2021-02-23 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
2019-03-02 00:59:49 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "shadowsocks-rust";
|
2021-02-23 04:20:00 +00:00
|
|
|
version = "1.9.1";
|
2019-03-02 00:59:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "shadowsocks";
|
|
|
|
repo = pname;
|
2021-02-23 04:20:00 +00:00
|
|
|
sha256 = "1lxx9xzkv3y2qjffa5dmwv0ygka71dx3c2995ggcgy5fb19yrghc";
|
2019-03-02 00:59:49 +00:00
|
|
|
};
|
|
|
|
|
2021-02-23 04:20:00 +00:00
|
|
|
cargoSha256 = "0p93dv4nlwl5167dmp160l09wqba5d40gaiwc6vbzb4iqdicgwls";
|
2020-05-15 09:20:00 +00:00
|
|
|
|
2021-02-23 04:20:00 +00:00
|
|
|
RUSTC_BOOTSTRAP = 1;
|
2019-03-02 00:59:49 +00:00
|
|
|
|
2021-02-23 04:20:00 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
|
|
|
checkFlags = [ "--skip=http_proxy" "--skip=udp_tunnel" ];
|
2019-03-02 00:59:49 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|