shadowsocks-rust: 1.21.2 -> 1.22.0

This commit is contained in:
lyranico
2025-02-03 19:20:22 +00:00
committed by GitHub
parent 288670f483
commit 4fe1365eba
2 changed files with 19 additions and 14 deletions
@@ -1,26 +1,33 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security, CoreServices }:
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "shadowsocks-rust";
version = "1.21.2";
version = "1.22.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "shadowsocks";
repo = pname;
hash = "sha256-bvYp25EPKtkuZzplVYK4Cwd0mm4UuyN1LMiDAkgMIAc=";
repo = "shadowsocks-rust";
tag = "v${version}";
hash = "sha256-rufOrNwUp8h0LoBKPyDV63WAYTLJbctWrq5Ghj6ODB4=";
};
cargoHash = "sha256-zmyce0Dt9ai4pNQi+b37KrCDqdjT9tQ8k2yHLDWDTXY=";
useFetchCargoVendor = true;
cargoHash = "sha256-hdHCpER4qs8W6rMmwys2KhaGDiTWcnntAL3ZeTBgt84=";
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ Security CoreServices ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
buildFeatures = [
"trust-dns"
"local-http-native-tls"
"local-tunnel"
"local-socks4"
"local-redir"
@@ -47,11 +54,11 @@ rustPlatform.buildRustPackage rec {
# timeouts in sandbox
doCheck = false;
meta = with lib; {
meta = {
description = "Rust port of Shadowsocks";
homepage = "https://github.com/shadowsocks/shadowsocks-rust";
changelog = "https://github.com/shadowsocks/shadowsocks-rust/raw/v${version}/debian/changelog";
license = licenses.mit;
license = lib.licenses.mit;
maintainers = [ ];
};
}
+1 -3
View File
@@ -4973,9 +4973,7 @@ with pkgs;
seqdiag = with python3Packages; toPythonApplication seqdiag;
shadowsocks-rust = callPackage ../tools/networking/shadowsocks-rust {
inherit (darwin.apple_sdk.frameworks) Security CoreServices;
};
shadowsocks-rust = callPackage ../tools/networking/shadowsocks-rust { };
shellify = haskellPackages.shellify.bin;