diff --git a/pkgs/tools/misc/steampipe/default.nix b/pkgs/tools/misc/steampipe/default.nix index 9d76bbe0f445..d14aed0d376d 100644 --- a/pkgs/tools/misc/steampipe/default.nix +++ b/pkgs/tools/misc/steampipe/default.nix @@ -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;";