diff options
Diffstat (limited to 'pkgs/tools/misc/steampipe/default.nix')
-rw-r--r-- | pkgs/tools/misc/steampipe/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/misc/steampipe/default.nix b/pkgs/tools/misc/steampipe/default.nix new file mode 100644 index 00000000000..74fc37800e9 --- /dev/null +++ b/pkgs/tools/misc/steampipe/default.nix @@ -0,0 +1,41 @@ +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: + +buildGoModule rec { + pname = "steampipe"; + version = "0.13.2"; + + src = fetchFromGitHub { + owner = "turbot"; + repo = "steampipe"; + rev = "v${version}"; + sha256 = "sha256-Ty8yCcxdPa/z1k9xMv8iCybRXfvJKRJIT+oH7MbLWmw="; + }; + + vendorSha256 = "sha256-0jixQcgSXQJAd899EWOUKde5OXZcSZwQfH7LRdQlm7c="; + proxyVendor = true; + + # tests are failing for no obvious reasons + doCheck = false; + + nativeBuildInputs = [ installShellFiles ]; + + ldflags = [ + "-s" + "-w" + ]; + + postInstall = '' + INSTALL_DIR=$(mktemp -d) + installShellCompletion --cmd steampipe \ + --bash <($out/bin/steampipe --install-dir $INSTALL_DIR completion bash) \ + --fish <($out/bin/steampipe --install-dir $INSTALL_DIR completion fish) \ + --zsh <($out/bin/steampipe --install-dir $INSTALL_DIR completion zsh) + ''; + + meta = with lib; { + homepage = "https://steampipe.io/"; + description = "select * from cloud;"; + license = licenses.agpl3; + maintainers = with maintainers; [ hardselius ]; + }; +} |