tuic: init at 1.0.0

Co-authored-by: NickCao <nickcao@nichi.co>
This commit is contained in:
oluceps 2023-06-19 06:16:30 +08:00
parent f4b5cda2db
commit 88497d066b
No known key found for this signature in database
3 changed files with 1087 additions and 0 deletions

1052
pkgs/tools/networking/tuic/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,33 @@
{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec{
pname = "tuic";
version = "1.0.0";
src = fetchFromGitHub {
owner = "EAimTY";
repo = pname;
rev = "tuic-server-${version}";
hash = "sha256-VoNr91vDqBlt9asT/dwCeYk13UNiDexNNiKwD5DSn8k=";
};
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';
cargoLock.lockFile = ./Cargo.lock;
# doc test will fail in this version
checkFlags = [ "--skip=lib" ];
meta = with lib; {
homepage = "https://github.com/EAimTY/tuic";
description = "Delicately-TUICed 0-RTT proxy protocol";
license = licenses.gpl3Only;
platforms = platforms.unix;
maintainers = with maintainers; [ oluceps ];
};
}

View File

@ -40914,6 +40914,8 @@ with pkgs;
tubekit-unwrapped = callPackage ../applications/networking/cluster/tubekit { };
tuic = callPackage ../tools/networking/tuic { };
resgate = callPackage ../servers/resgate { };
oversteer = callPackage ../applications/misc/oversteer { };