Merge pull request #263089 from r-ryantm/auto-update/zitadel-tools

zitadel-tools: 0.4.0 -> 0.4.1, and tab-completions
This commit is contained in:
Janik 2023-10-24 22:24:47 +02:00 committed by GitHub
commit 35d87899f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,37 @@
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "zitadel-tools";
version = "0.4.0";
version = "0.4.1";
src = fetchFromGitHub {
owner = "zitadel";
repo = "zitadel-tools";
rev = "v${version}";
hash = "sha256-yKSpWvv/xW7ID0KhPIsrZOEWuuhEqpJuiswqO71ooEw=";
hash = "sha256-r9GEHpfDlpK98/dnsxjhUgWKn6vHQla8Z+jQUVrHGyo=";
};
vendorHash = "sha256-ZS8m3zjLWvX3kFty2jpObw+rfyozJ3yDfZBcFCdD96U=";
nativeBuildInputs = [ installShellFiles ];
vendorHash = "sha256-y2PYj0XRSgfiaYpeqAh4VR/+NKUPKd1c0w9pPCWsUrY=";
ldflags = [
"-s" "-w"
"-X main.version=${version}"
];
postInstall = ''
local INSTALL="$out/bin/zitadel-tools"
installShellCompletion --cmd zitadel-tools \
--bash <($out/bin/zitadel-tools completion bash) \
--fish <($out/bin/zitadel-tools completion fish) \
--zsh <($out/bin/zitadel-tools completion zsh)
'';
meta = with lib; {
description = "Helper tools for zitadel";
homepage = "https://github.com/zitadel/zitadel-tools";