dapr-cli: 1.1.0 -> 1.7.0

* renamed package to match top-level
* tests fixed
* autocomplete added
* minor cleanup/refactoring
This commit is contained in:
superherointj 2022-04-25 18:20:41 -03:00
parent 6a323903ad
commit 30e155c552

View File

@ -1,23 +1,30 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
buildGoModule rec {
pname = "dapr";
version = "1.1.0";
vendorSha256 = "0fng5a1pvpbwil79xapdalzgkgc9dwsdxs6bznjfwnkyd1vvw6fm";
pname = "dapr-cli";
version = "1.7.0";
src = fetchFromGitHub {
sha256 = "0x2mvlzlmcik6ys6xp722px9l4lj9ssyxb06bzxd7yj7m1wwcwp9";
owner = "dapr";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-+P1oXG+uvnFDGis5pz9VUQ4n1C7mjuetXz1OtN7IIrg=";
};
doCheck = false;
vendorSha256 = "sha256-EvOyOy7DFQtFavOC9eBUZRJsj3pNdx7jumVmZ/THdaM=";
nativeBuildInputs = [ installShellFiles ];
preCheck = ''
export HOME=$(mktemp -d)
'';
postInstall = ''
mv $out/bin/cli $out/bin/dapr
installShellCompletion --cmd dapr \
--bash <($out/bin/dapr completion bash) \
--zsh <($out/bin/dapr completion zsh)
'';
meta = with lib; {