2022-07-08 23:31:37 +02:00
|
|
|
{ stdenv, lib, buildGo118Module, fetchFromGitHub, installShellFiles }:
|
2021-10-12 10:27:24 +02:00
|
|
|
|
2022-07-08 23:31:37 +02:00
|
|
|
buildGo118Module rec {
|
2021-10-12 10:27:24 +02:00
|
|
|
pname = "steampipe";
|
2022-07-08 23:31:37 +02:00
|
|
|
version = "0.15.0";
|
2021-10-12 10:27:24 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "turbot";
|
|
|
|
repo = "steampipe";
|
|
|
|
rev = "v${version}";
|
2022-07-08 23:31:37 +02:00
|
|
|
sha256 = "sha256-ly64p8shbhixLbK9hpDNYhmBKoAt4iXB//pdFSIYZMc=";
|
2021-10-12 10:27:24 +02:00
|
|
|
};
|
|
|
|
|
2022-07-08 23:31:37 +02:00
|
|
|
vendorSha256 = "sha256-/VU8VNDqU7CMm/lIBqTChyUWP4svVCgsw0CBcp/u+U0=";
|
2022-01-29 10:06:54 +01:00
|
|
|
proxyVendor = true;
|
2021-10-12 10:27:24 +02:00
|
|
|
|
2021-10-13 22:20:33 +02:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-10-12 10:27:24 +02:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
2021-10-13 22:20:33 +02: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 10:27:24 +02:00
|
|
|
meta = with lib; {
|
2022-05-28 15:22:26 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2021-10-12 10:27:24 +02:00
|
|
|
homepage = "https://steampipe.io/";
|
|
|
|
description = "select * from cloud;";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ hardselius ];
|
|
|
|
};
|
|
|
|
}
|