3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/onetun/default.nix

32 lines
743 B
Nix
Raw Normal View History

2022-08-07 22:31:46 +01:00
{ lib
, rustPlatform
2022-09-27 02:33:47 +01:00
, fetchFromGitHub
, stdenv
, Security
2022-08-07 22:31:46 +01:00
}:
2022-09-27 02:33:47 +01:00
2022-08-07 22:31:46 +01:00
rustPlatform.buildRustPackage rec {
pname = "onetun";
2022-09-26 22:57:42 +01:00
version = "0.3.4";
2022-08-07 22:31:46 +01:00
src = fetchFromGitHub {
owner = "aramperes";
repo = pname;
rev = "v${version}";
2022-09-26 22:57:42 +01:00
sha256 = "sha256-gVw1aVbYjDPYTtMYIXq3k+LN0gUBAbQm275sxzwoYw8=";
2022-08-07 22:31:46 +01:00
};
2022-09-26 22:57:42 +01:00
cargoSha256 = "sha256-/sOjd0JKk3MNNXYpTEXteFYtqDWYfyVItZrkX4uzjtc=";
2022-08-07 22:31:46 +01:00
2022-09-27 02:33:47 +01:00
buildInputs = lib.optionals stdenv.isDarwin [
Security
];
2022-08-07 22:31:46 +01: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 ];
};
}