depot/third_party/nixpkgs/pkgs/tools/networking/tuic/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

33 lines
716 B
Nix

{ 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 ];
};
}