From 7fcb06ad6d3dae041b70d82fda0067c31f8e58d9 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Tue, 27 Aug 2024 00:31:26 +0300 Subject: [PATCH] rathole: 0.5.0 -> 0.5.0-unstable-2024-06-06 - Update to [be14d12](https://github.com/rapiz1/rathole/commit/be14d12), which has Rust 1.80 fixes - Re-enable doCheck - Add myself as maintainer - Sort meta attributes - Remove with lib; usage - Drop changelog for unstable version, since upstream does not track unreleased changes --- pkgs/by-name/ra/rathole/package.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/ra/rathole/package.nix b/pkgs/by-name/ra/rathole/package.nix index 6e6138e44830..38d163daf8d8 100644 --- a/pkgs/by-name/ra/rathole/package.nix +++ b/pkgs/by-name/ra/rathole/package.nix @@ -9,18 +9,18 @@ darwin, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage { pname = "rathole"; - version = "0.5.0"; + version = "0.5.0-unstable-2024-06-06"; src = fetchFromGitHub { owner = "rapiz1"; - repo = pname; - rev = "refs/tags/v${version}"; - hash = "sha256-YfLzR1lHk+0N3YU1XTNxz+KE1S3xaiKJk0zASm6cr1s="; + repo = "rathole"; + rev = "be14d124a22e298d12d92e56ef4fec0e51517998"; + hash = "sha256-C0/G4JOZ4pTAvcKZhRHsGvlLlwAyWBQ0rMScLvaLSuA="; }; - cargoHash = "sha256-UyQXAUPnp32THZJAs/p3bIXZjcXTvjy207QBVLCfkr8="; + cargoHash = "sha256-zlwIgzqpoEgYqZe4Gv8owJQ3m7UFgPA5joRMiyq+T/M="; nativeBuildInputs = [ pkg-config ]; @@ -30,18 +30,18 @@ rustPlatform.buildRustPackage rec { __darwinAllowLocalNetworking = true; - doCheck = false; # https://github.com/rapiz1/rathole/issues/222 - passthru.tests = { inherit (nixosTests) rathole; }; - meta = with lib; { + meta = { description = "Reverse proxy for NAT traversal"; homepage = "https://github.com/rapiz1/rathole"; - changelog = "https://github.com/rapiz1/rathole/releases/tag/v${version}"; - license = licenses.asl20; - maintainers = with maintainers; [ dit7ya ]; + license = lib.licenses.asl20; mainProgram = "rathole"; + maintainers = with lib.maintainers; [ + dit7ya + xokdvium + ]; }; }