mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
2f784861e1
Changed to buildGo118Module as steampipe 0.14+ requires Go 1.18
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ stdenv, lib, buildGo118Module, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGo118Module rec {
|
|
pname = "steampipe";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "turbot";
|
|
repo = "steampipe";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ly64p8shbhixLbK9hpDNYhmBKoAt4iXB//pdFSIYZMc=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-/VU8VNDqU7CMm/lIBqTChyUWP4svVCgsw0CBcp/u+U0=";
|
|
proxyVendor = true;
|
|
|
|
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; {
|
|
broken = stdenv.isDarwin;
|
|
homepage = "https://steampipe.io/";
|
|
description = "select * from cloud;";
|
|
license = licenses.agpl3;
|
|
maintainers = with maintainers; [ hardselius ];
|
|
};
|
|
}
|