diff options
author | Anthony Roussel <anthony@roussel.dev> | 2024-03-26 10:08:54 +0100 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2024-03-26 10:09:15 +0100 |
commit | 9f5caec3abeceef36fbd12e44ff6d4123c291765 (patch) | |
tree | 58d50b72da8e603cab02461768915790a5f2f9d5 | |
parent | ee7969386d3dda2541835151581aa8a1b006795c (diff) | |
download | nixlib-9f5caec3abeceef36fbd12e44ff6d4123c291765.tar nixlib-9f5caec3abeceef36fbd12e44ff6d4123c291765.tar.gz nixlib-9f5caec3abeceef36fbd12e44ff6d4123c291765.tar.bz2 nixlib-9f5caec3abeceef36fbd12e44ff6d4123c291765.tar.lz nixlib-9f5caec3abeceef36fbd12e44ff6d4123c291765.tar.xz nixlib-9f5caec3abeceef36fbd12e44ff6d4123c291765.tar.zst nixlib-9f5caec3abeceef36fbd12e44ff6d4123c291765.zip |
steampipe: add passthru.{tests.version,updateScript}
-rw-r--r-- | pkgs/tools/misc/steampipe/default.nix | 20 |
1 files changed, 19 insertions, 1 deletions
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;"; |