rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / tools / networking / rathole / default.nix
blob1f12ed46b1476785b3ce2da0cb320e17563a6adb
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , rustPlatform
5 , pkg-config
6 , openssl
7 , CoreServices
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "rathole";
12   version = "0.5.0";
14   src = fetchFromGitHub {
15     owner = "rapiz1";
16     repo = pname;
17     rev = "refs/tags/v${version}";
18     hash = "sha256-YfLzR1lHk+0N3YU1XTNxz+KE1S3xaiKJk0zASm6cr1s=";
19   };
21   cargoHash = "sha256-UyQXAUPnp32THZJAs/p3bIXZjcXTvjy207QBVLCfkr8=";
23   nativeBuildInputs = [
24     pkg-config
25   ];
27   buildInputs = [
28     openssl
29   ] ++ lib.optionals stdenv.isDarwin [
30     CoreServices
31   ];
33   __darwinAllowLocalNetworking = true;
35   doCheck = false; # https://github.com/rapiz1/rathole/issues/222
37   meta = with lib; {
38     description = "Reverse proxy for NAT traversal";
39     homepage = "https://github.com/rapiz1/rathole";
40     changelog = "https://github.com/rapiz1/rathole/releases/tag/v${version}";
41     license = licenses.asl20;
42     maintainers = with maintainers; [ dit7ya ];
43     mainProgram = "rathole";
44   };