mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
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:
commit
35d87899f7
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user