clash-rs: init at 0.7.0

This commit is contained in:
dr56ekgbb 2024-10-29 03:34:48 +08:00 committed by расходный материал
parent c7bb6840d2
commit d8aa5f4178
2 changed files with 7404 additions and 0 deletions

7343
pkgs/by-name/cl/clash-rs/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,61 @@
{
lib,
fetchFromGitHub,
rustPlatform,
protobuf,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "clash-rs";
version = "0.7.0";
src = fetchFromGitHub {
owner = "Watfaq";
repo = "clash-rs";
rev = "v${version}";
hash = "sha256-0deMVI51XHTCrnLTycqDsaY5Lq+wx14uMUlkG5OViNA=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"boringtun-0.6.0" = "sha256-HBNo53b+CpCGmTXZYH4NBBvNmekyaBKAk1pSRzZdavg=";
"netstack-lwip-0.3.4" = "sha256-lcauDyaw5gAaECRcGNXQDHbWmnyxil18qWFkZ/p/C50=";
"rustls-0.23.12" = "sha256-grt94JG44MljRQRooVZbXL4h4XLI1/KoIdwGv03MoIU=";
"tokio-rustls-0.26.0" = "sha256-Bmi36j8hbR4kkY/xnHbluaInk+YH5/eTln0VYfHulGA=";
"tracing-oslog-0.2.0" = "sha256-JYaCslbVOgsyBhjeBkplPWcjSgFccjr4s6OAGIUu5kg=";
"tuic-1.3.1" = "sha256-WMd+O2UEu0AEI+gNeQtdBhEgIB8LPanoIpMcDAUUWrM=";
"tun-0.6.1" = "sha256-j4yQSu4Mw7DBFak8vJGQomYq81+pfaeEDdN4NNBve+E=";
"unix-udp-sock-0.7.0" = "sha256-TekBfaxecFPpOfq7PVjLHwc0uIp3yJGV/Cgav5VfKaA=";
};
};
env = {
PROTOC = "${protobuf}/bin/protoc";
# requires features: sync_unsafe_cell, unbounded_shifts, let_chains, ip
RUSTC_BOOTSTRAP = 1;
};
doInstallCheck = true;
dontCargoCheck = true; # test failed
versionCheckProgramArg = "--version";
nativeInstallCheckInputs = [ versionCheckHook ];
buildFeatures = [
"shadowsocks"
"tuic"
"onion"
];
meta = {
description = "Custom protocol, rule based network proxy software";
homepage = "https://github.com/Watfaq/clash-rs";
mainProgram = "clash-rs";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ aucub ];
platforms = lib.platforms.linux;
};
}