nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitLab,
5 perl,
6 nix-update-script,
7}:
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "oniux";
10 version = "0.7.0";
11
12 src = fetchFromGitLab {
13 domain = "gitlab.torproject.org";
14 owner = "tpo/core";
15 repo = "oniux";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-MUSLyNKJTLwFxDLglNN9YoX58yBDrtW2Atds/zvnmFY=";
18 };
19
20 cargoHash = "sha256-MoAjUn6rBiIK3sZDEcJjRZdfFOTSUT4/eeC3ymsQs14=";
21
22 nativeBuildInputs = [
23 perl
24 ];
25
26 passthru.updateScript = nix-update-script { };
27
28 meta = {
29 homepage = "https://gitlab.torproject.org/tpo/core/oniux";
30 description = "Isolate Applications over Tor using Linux Namespaces";
31 maintainers = with lib.maintainers; [ tnias ];
32 platforms = lib.platforms.linux;
33 license = with lib.licenses; [
34 asl20
35 mit
36 ];
37 mainProgram = "oniux";
38 };
39})