7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
39 lines
850 B
Nix
39 lines
850 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec{
|
|
pname = "tuic";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "EAimTY";
|
|
repo = pname;
|
|
rev = "tuic-server-${version}";
|
|
hash = "sha256-VoNr91vDqBlt9asT/dwCeYk13UNiDexNNiKwD5DSn8k=";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
Security
|
|
]);
|
|
|
|
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 ];
|
|
};
|
|
}
|