nixpkgs/pkgs/tools/misc/steampipe/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1,005 B
Nix
Raw Normal View History

2021-10-13 22:20:33 +02:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2021-10-12 10:27:24 +02:00
buildGoModule rec {
pname = "steampipe";
2022-04-04 01:08:41 +02:00
version = "0.13.4";
2021-10-12 10:27:24 +02:00
src = fetchFromGitHub {
owner = "turbot";
repo = "steampipe";
rev = "v${version}";
2022-04-04 01:08:41 +02:00
sha256 = "sha256-Qq8i/uU2TtrEpvTPFmnZdku2vNo5O240dAT2OQKel1U=";
2021-10-12 10:27:24 +02:00
};
2022-04-04 01:08:41 +02:00
vendorSha256 = "sha256-pEQG9BHhsVDVSOoKJBocLXMLjmP72RM+GXz4nYD4D7s=";
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; {
homepage = "https://steampipe.io/";
description = "select * from cloud;";
license = licenses.agpl3;
maintainers = with maintainers; [ hardselius ];
};
}