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

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

40 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, lib, buildGo118Module, fetchFromGitHub, installShellFiles }:
2021-10-12 10:27:24 +02:00
buildGo118Module rec {
2021-10-12 10:27:24 +02:00
pname = "steampipe";
version = "0.15.0";
2021-10-12 10:27:24 +02:00
src = fetchFromGitHub {
owner = "turbot";
repo = "steampipe";
rev = "v${version}";
sha256 = "sha256-ly64p8shbhixLbK9hpDNYhmBKoAt4iXB//pdFSIYZMc=";
2021-10-12 10:27:24 +02:00
};
vendorSha256 = "sha256-/VU8VNDqU7CMm/lIBqTChyUWP4svVCgsw0CBcp/u+U0=";
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; {
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 ];
};
}