steampipe: add passthru.{tests.version,updateScript}
This commit is contained in:
parent
ee7969386d
commit
9f5caec3ab
1 changed files with 19 additions and 1 deletions
|
@ -1,4 +1,13 @@
|
||||||
{ lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
{
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitHub,
|
||||||
|
installShellFiles,
|
||||||
|
lib,
|
||||||
|
nix-update-script,
|
||||||
|
stdenv,
|
||||||
|
steampipe,
|
||||||
|
testers,
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "steampipe";
|
pname = "steampipe";
|
||||||
|
@ -38,6 +47,15 @@ buildGoModule rec {
|
||||||
--zsh <($out/bin/steampipe --install-dir $INSTALL_DIR completion zsh)
|
--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; {
|
meta = with lib; {
|
||||||
homepage = "https://steampipe.io/";
|
homepage = "https://steampipe.io/";
|
||||||
description = "select * from cloud;";
|
description = "select * from cloud;";
|
||||||
|
|
Loading…
Reference in a new issue