Unverified Commit 9f5caec3 authored by Anthony Roussel's avatar Anthony Roussel
Browse files

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

parent ee796938
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
{ 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;";