From 178ea53f4009aed5591a626648e3c96d36d0147e Mon Sep 17 00:00:00 2001 From: Philipp Bartsch Date: Thu, 15 May 2025 22:23:08 +0200 Subject: [PATCH] oniux: init at 0.4.0 --- pkgs/by-name/on/oniux/package.nix | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/on/oniux/package.nix diff --git a/pkgs/by-name/on/oniux/package.nix b/pkgs/by-name/on/oniux/package.nix new file mode 100644 index 000000000000..e63fe4a308b3 --- /dev/null +++ b/pkgs/by-name/on/oniux/package.nix @@ -0,0 +1,35 @@ +{ + lib, + rustPlatform, + fetchFromGitLab, + nix-update-script, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "oniux"; + version = "0.4.0"; + + src = fetchFromGitLab { + domain = "gitlab.torproject.org"; + owner = "tpo/core"; + repo = "oniux"; + tag = "v${finalAttrs.version}"; + hash = "sha256-wWB/ch8DB2tO4+NuNDaGv8K4AbV5/MbyY01oRGai86A="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-tUOxs9bTcXS3Gq6cHYe+eAGAEYSRvf3JVGugBImbvJM="; + + passthru.updateScript = nix-update-script { }; + + meta = { + homepage = "https://gitlab.torproject.org/tpo/core/oniux"; + description = "Isolate Applications over Tor using Linux Namespaces"; + maintainers = with lib.maintainers; [ tnias ]; + platforms = lib.platforms.linux; + license = with lib.licenses; [ + asl20 + mit + ]; + mainProgram = "oniux"; + }; +})