nixpkgs/pkgs/tools/networking/onetun/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
767 B
Nix
Raw Normal View History

2022-08-08 00:31:46 +03:00
{ lib
, rustPlatform
2022-09-27 04:33:47 +03:00
, fetchFromGitHub
, stdenv
, Security
2022-08-08 00:31:46 +03:00
}:
2022-09-27 04:33:47 +03:00
2022-08-08 00:31:46 +03:00
rustPlatform.buildRustPackage rec {
pname = "onetun";
2023-12-29 04:09:44 +03:00
version = "0.3.7";
2022-08-08 00:31:46 +03:00
src = fetchFromGitHub {
owner = "aramperes";
repo = pname;
rev = "v${version}";
2023-12-29 04:09:44 +03:00
sha256 = "sha256-GVIRCMeuuhUA8lqQ1oI/Xcuf90QIlwhqYeU+HhbGWXQ=";
2022-08-08 00:31:46 +03:00
};
2023-12-29 04:09:44 +03:00
cargoHash = "sha256-TRfr4riMzR/MbsV2RiQNlPoPLhHK5EScNBCeyyamfgE=";
2022-08-08 00:31:46 +03:00
2022-09-27 04:33:47 +03:00
buildInputs = lib.optionals stdenv.isDarwin [
Security
];
2022-08-08 00:31:46 +03:00
meta = with lib; {
description = "Cross-platform, user-space WireGuard port-forwarder that requires no root-access or system network configurations";
homepage = "https://github.com/aramperes/onetun";
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
2024-02-11 05:19:15 +03:00
mainProgram = "onetun";
2022-08-08 00:31:46 +03:00
};
}