3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/steampipe/default.nix

41 lines
1 KiB
Nix
Raw Normal View History

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