steampipe: add passthru.{tests.version,updateScript}

This commit is contained in:
Anthony Roussel 2024-03-26 10:08:54 +01:00
parent ee7969386d
commit 9f5caec3ab
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E

View file

@ -1,4 +1,13 @@
{ lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
{
buildGoModule,
fetchFromGitHub,
installShellFiles,
lib,
nix-update-script,
stdenv,
steampipe,
testers,
}:
buildGoModule rec {
pname = "steampipe";
@ -38,6 +47,15 @@ buildGoModule rec {
--zsh <($out/bin/steampipe --install-dir $INSTALL_DIR completion zsh)
'';
passthru = {
tests.version = testers.testVersion {
command = "${lib.getExe steampipe} --version";
package = steampipe;
version = "v${version}";
};
updateScript = nix-update-script { };
};
meta = with lib; {
homepage = "https://steampipe.io/";
description = "select * from cloud;";