python312Packages.fastembed: unpin pillow (#358505)
[NixPkgs.git] / pkgs / tools / networking / onetun / default.nix
blob61f2ce7f3f45ee2ae66e8718183e667699ac92cd
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , Security
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "onetun";
10   version = "0.3.7";
12   src = fetchFromGitHub {
13     owner = "aramperes";
14     repo = pname;
15     rev = "v${version}";
16     sha256 = "sha256-GVIRCMeuuhUA8lqQ1oI/Xcuf90QIlwhqYeU+HhbGWXQ=";
17   };
19   cargoHash = "sha256-TRfr4riMzR/MbsV2RiQNlPoPLhHK5EScNBCeyyamfgE=";
21   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
22     Security
23   ];
25   meta = with lib; {
26     description = "Cross-platform, user-space WireGuard port-forwarder that requires no root-access or system network configurations";
27     homepage = "https://github.com/aramperes/onetun";
28     license = licenses.mit;
29     maintainers = with maintainers; [ dit7ya ];
30     mainProgram = "onetun";
31   };