Skip to content

Commit

Permalink
trojan-rs: init at 0.16.0-unstable-2024-11-21 (NixOS#295234)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz authored Dec 2, 2024
2 parents 12c4224 + ff9420b commit d4f2666
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/by-name/tr/trojan-rs/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
fetchFromGitHub,
rustPlatform,
lib,
ipset,
}:

rustPlatform.buildRustPackage {
pname = "trojan-rs";
version = "0.16.0-unstable-2024-11-21";

src = fetchFromGitHub {
owner = "lazytiger";
repo = "trojan-rs";
rev = "a996b83e3d57b571fa59f01034fcdd32a09ee8bc";
hash = "sha256-rtYvsFxxhkUuR/tLrRFvRBLG8C84Qs0kYmXkNP/Ai3c=";
};

cargoHash = "sha256-FJV4pMfaw4rHTYZekot5ZTBDChfS1gCPc5NqoLeGjws=";

nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = [ ipset ];

env.RUSTC_BOOTSTRAP = true;
env.RUSTFLAGS = "--cfg tokio_unstable";

meta = {
homepage = "https://github.com/lazytiger/trojan-rs";
description = "Trojan server and proxy programs written in Rust";
license = lib.licenses.mit;
mainProgram = "trojan";
maintainers = with lib.maintainers; [ oluceps ];
};
}

0 comments on commit d4f2666

Please sign in to comment.