2021-10-13 20:20:33 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2021-10-12 08:27:24 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "steampipe";
|
2021-12-24 04:50:08 +00:00
|
|
|
version = "0.11.0";
|
2021-10-12 08:27:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "turbot";
|
|
|
|
repo = "steampipe";
|
|
|
|
rev = "v${version}";
|
2021-12-24 04:50:08 +00:00
|
|
|
sha256 = "sha256-P/Fys9/V71+VL5Az3EGGaW+tdeQbr2wO+jvVSVZmJT0=";
|
2021-10-12 08:27:24 +00:00
|
|
|
};
|
|
|
|
|
2021-12-24 04:50:08 +00:00
|
|
|
vendorSha256 = "sha256-PYaq74NNEOJ1jZ6PoS6zcTiUN4JA9JDjO7GB9tqgT6c=";
|
2021-10-12 08:27:24 +00:00
|
|
|
|
|
|
|
# tests are failing for no obvious reasons
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-13 20:20:33 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-10-12 08:27:24 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
2021-10-13 20:20:33 +00:00
|
|
|
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)
|
|
|
|
'';
|
|
|
|
|
2021-10-12 08:27:24 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://steampipe.io/";
|
|
|
|
description = "select * from cloud;";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ hardselius ];
|
|
|
|
};
|
|
|
|
}
|