0eeabdeb66
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "steampipe";
|
|
version = "0.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "turbot";
|
|
repo = "steampipe";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-vDyox8UArgK27FkNFK3SNksvOmpaRgZ/ueZgqO7MOl0=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-ikmcayOy87u6XMYjxxzFv35Rlp9oTteEKFOPr/+xc2Y=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|