sandhole: init at 0.8.6 (#475557)

This commit is contained in:
Pol Dellaiera
2026-01-01 18:06:43 +00:00
committed by GitHub
2 changed files with 59 additions and 0 deletions

View File

@@ -7893,6 +7893,12 @@
githubId = 5085029;
name = "Emanuele Peruffo";
};
EpicEric = {
email = "eric@eric.dev.br";
github = "EpicEric";
githubId = 3129194;
name = "Eric Rodrigues Pires";
};
epireyn = {
github = "epireyn";
githubId = 48213068;

View File

@@ -0,0 +1,53 @@
{
cmake,
fetchFromGitHub,
lib,
perl,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "sandhole";
version = "0.8.6";
src = fetchFromGitHub {
owner = "EpicEric";
repo = "sandhole";
tag = "v${finalAttrs.version}";
hash = "sha256-30ltOQLobRy/M1v+0jFpBmH5ZkTmkZ+mQP7BX5RKo2s=";
};
cargoHash = "sha256-BE7y4VlvINWdJM4/36CDn4YxPWUQnT22YJtcvjup0Ec=";
# All integration tests require networking.
postPatch = ''
echo "fn main() {}" > tests/integration/main.rs
'';
buildInputs = [ cmake ];
nativeBuildInputs = [ perl ];
useNextest = true;
checkFlags = [
# Some unit tests require networking.
"--skip"
"login"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "Expose HTTP/SSH/TCP services through SSH port forwarding";
longDescription = ''
A reverse proxy that just works with an OpenSSH client.
No extra software required to beat NAT!
'';
homepage = "https://sandhole.com.br";
changelog = "https://github.com/EpicEric/sandhole/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "sandhole";
maintainers = with lib.maintainers; [ EpicEric ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
})