From 20557ba94ba5dfcd178e4f8e7f8c56a031b08f5a Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 21 Jun 2025 20:34:34 +0200 Subject: [PATCH] udp-over-tcp: init at 0.4.0 --- pkgs/by-name/ud/udp-over-tcp/package.nix | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ud/udp-over-tcp/package.nix diff --git a/pkgs/by-name/ud/udp-over-tcp/package.nix b/pkgs/by-name/ud/udp-over-tcp/package.nix new file mode 100644 index 000000000000..ce713befb818 --- /dev/null +++ b/pkgs/by-name/ud/udp-over-tcp/package.nix @@ -0,0 +1,34 @@ +{ + fetchFromGitHub, + lib, + rustPlatform, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "udp-over-tcp"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "mullvad"; + repo = "udp-over-tcp"; + tag = "v${finalAttrs.version}"; + hash = "sha256-nlLo5/CpieBuRpQyd0eybfkltZyt4qeiupkbtfL/qWE="; + }; + + cargoHash = "sha256-s72C+7q56dSwrmkUBy871rF1MvPkhg8780S+dN/ETh0="; + cargoBuildFlags = [ + "--bins" + "--features" + "clap" + ]; + + meta = { + homepage = "https://github.com/mullvad/udp-over-tcp"; + description = "Proxy UDP traffic over a TCP stream"; + license = with lib.licenses; [ + asl20 + mit + ]; + maintainers = with lib.maintainers; [ timschumi ]; + # No single mainProgram is listed here because tcp2udp and udp2tcp are equally important. + }; +})