From 4eafbbd1c52a405c502611aa5c870a4c98456088 Mon Sep 17 00:00:00 2001 From: Eric Rodrigues Pires Date: Tue, 9 Jun 2026 19:00:26 -0300 Subject: [PATCH] sandhole: 0.9.5 -> 0.10.0 --- pkgs/by-name/sa/sandhole/package.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sa/sandhole/package.nix b/pkgs/by-name/sa/sandhole/package.nix index 4db1fddb74da..33dda20b501c 100644 --- a/pkgs/by-name/sa/sandhole/package.nix +++ b/pkgs/by-name/sa/sandhole/package.nix @@ -1,6 +1,7 @@ { cmake, fetchFromGitHub, + installShellFiles, lib, lld, perl, @@ -10,19 +11,20 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "sandhole"; - version = "0.9.5"; + version = "0.10.0"; src = fetchFromGitHub { owner = "EpicEric"; repo = "sandhole"; tag = "v${finalAttrs.version}"; - hash = "sha256-l+9DcqAxrrjLxs/7KxY6QlfIAlwMVjQztt4lgJJMsyI="; + hash = "sha256-nOh9JRb1T85gEsQzd0BJqvR941QMoqeIjRFg4d8eASc="; }; - cargoHash = "sha256-euWvpEjSW2JeDysBul5eR4M27LwkRSZDlsp57lMBpAE="; + cargoHash = "sha256-EZxRKq5r5Cgp/WqcL1dY4ypf2K73YjaadqI5Tl+6Kec="; nativeBuildInputs = [ cmake + installShellFiles perl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ lld ]; @@ -35,6 +37,13 @@ rustPlatform.buildRustPackage (finalAttrs: { doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + installShellCompletion --cmd sandhole \ + --bash <($out/bin/sandhole --completions bash) \ + --fish <($out/bin/sandhole --completions fish) \ + --zsh <($out/bin/sandhole --completions zsh) + ''; + meta = { description = "Expose HTTP/SSH/TCP services through SSH port forwarding"; longDescription = ''