mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
38d58b2917
Infra upgrade as part of #79975; no functional change expected.
30 lines
847 B
Nix
30 lines
847 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, libsodium, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shadowsocks-rust";
|
|
version = "1.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "shadowsocks";
|
|
repo = pname;
|
|
sha256 = "0w7ysha46ml3j1i1knvll4pmqg291z8a2ypcy650m61dhrvkh2ng";
|
|
};
|
|
|
|
cargoSha256 = "0srmn8ndy7vdvcysyb7a5pjly0m3jchq0zrqzhrwicynm291w56h";
|
|
|
|
buildInputs = [ openssl libsodium ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
# tries to read /etc/resolv.conf, hence fails in sandbox
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/shadowsocks/shadowsocks-rust;
|
|
description = "A Rust port of shadowsocks";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|