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

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

45 lines
945 B
Nix
Raw Normal View History

2022-08-06 08:42:30 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, openssl
, CoreServices
}:
2022-12-04 21:59:41 +00:00
2022-08-06 08:42:30 +00:00
rustPlatform.buildRustPackage rec {
pname = "rathole";
2023-10-16 22:15:04 +00:00
version = "0.5.0";
2022-08-06 08:42:30 +00:00
src = fetchFromGitHub {
owner = "rapiz1";
repo = pname;
2022-12-04 21:59:41 +00:00
rev = "refs/tags/v${version}";
2023-10-16 22:15:04 +00:00
hash = "sha256-YfLzR1lHk+0N3YU1XTNxz+KE1S3xaiKJk0zASm6cr1s=";
2022-08-06 08:42:30 +00:00
};
2023-10-16 22:15:04 +00:00
cargoHash = "sha256-UyQXAUPnp32THZJAs/p3bIXZjcXTvjy207QBVLCfkr8=";
2022-08-06 08:42:30 +00:00
2022-12-04 21:59:41 +00:00
nativeBuildInputs = [
pkg-config
];
2022-08-06 08:42:30 +00:00
2022-12-04 21:59:41 +00:00
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
CoreServices
];
2022-08-06 08:42:30 +00:00
__darwinAllowLocalNetworking = true;
doCheck = false; # https://github.com/rapiz1/rathole/issues/222
2022-08-06 08:42:30 +00:00
meta = with lib; {
2022-12-04 21:59:41 +00:00
description = "Reverse proxy for NAT traversal";
2022-08-06 08:42:30 +00:00
homepage = "https://github.com/rapiz1/rathole";
2022-12-04 21:59:41 +00:00
changelog = "https://github.com/rapiz1/rathole/releases/tag/v${version}";
2022-08-06 08:42:30 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
};
}