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
769 B
Nix
Raw Normal View History

2022-08-07 23:31:46 +02:00
{ lib
, rustPlatform
2022-09-27 03:33:47 +02:00
, fetchFromGitHub
, stdenv
, Security
2022-08-07 23:31:46 +02:00
}:
2022-09-27 03:33:47 +02:00
2022-08-07 23:31:46 +02:00
rustPlatform.buildRustPackage rec {
pname = "onetun";
2023-12-29 02:09:44 +01:00
version = "0.3.7";
2022-08-07 23:31:46 +02:00
src = fetchFromGitHub {
owner = "aramperes";
repo = pname;
rev = "v${version}";
2023-12-29 02:09:44 +01:00
sha256 = "sha256-GVIRCMeuuhUA8lqQ1oI/Xcuf90QIlwhqYeU+HhbGWXQ=";
2022-08-07 23:31:46 +02:00
};
2023-12-29 02:09:44 +01:00
cargoHash = "sha256-TRfr4riMzR/MbsV2RiQNlPoPLhHK5EScNBCeyyamfgE=";
2022-08-07 23:31:46 +02:00
2022-09-27 03:33:47 +02:00
buildInputs = lib.optionals stdenv.isDarwin [
Security
];
2022-08-07 23:31:46 +02:00
meta = with lib; {
description = "A 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 03:19:15 +01:00
mainProgram = "onetun";
2022-08-07 23:31:46 +02:00
};
}