snouty: init at 0.3.1

Adding snouty to nixpkgs. Snouty is a CLI for using Antithesis.
See more details about the project here: https://github.com/antithesishq/snouty

Co-authored-by: Winter M <winter@antithesis.com>
This commit is contained in:
Carl Sverre
2026-03-18 15:31:10 -04:00
committed by Winter M
co-authored by Winter M
parent 5fd5943ad8
commit 8268df3e9a
+59
View File
@@ -0,0 +1,59 @@
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
pkg-config,
openssl,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "snouty";
version = "0.3.1";
src = fetchFromGitHub {
owner = "antithesishq";
repo = "snouty";
tag = "v${finalAttrs.version}";
hash = "sha256-YLB4A5Ol+4sZF1RB28npJZ4pVF2Y2lSMBD8QoV8wZUg=";
};
cargoHash = "sha256-TJy9mJSXgJQMMDK6TFOXQVU8PujMjd3k2gdlW5Kf//4=";
nativeBuildInputs = [
installShellFiles
pkg-config
];
buildInputs = [
openssl
];
env.OPENSSL_NO_VENDOR = true;
postInstall = ''
installShellCompletion \
$releaseDir/build/snouty-*/out/snouty.{bash,fish} \
--zsh $releaseDir/build/snouty-*/out/_snouty
'';
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "CLI for the Antithesis API";
homepage = "https://github.com/antithesishq/snouty";
changelog = "https://github.com/antithesishq/snouty/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
carlsverre
winter
];
mainProgram = "snouty";
};
})