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:
parent
6a323903ad
commit
30e155c552
|
@ -1,23 +1,30 @@
|
||||||
{ buildGoModule, fetchFromGitHub, lib }:
|
{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "dapr";
|
pname = "dapr-cli";
|
||||||
version = "1.1.0";
|
version = "1.7.0";
|
||||||
|
|
||||||
vendorSha256 = "0fng5a1pvpbwil79xapdalzgkgc9dwsdxs6bznjfwnkyd1vvw6fm";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
sha256 = "0x2mvlzlmcik6ys6xp722px9l4lj9ssyxb06bzxd7yj7m1wwcwp9";
|
|
||||||
|
|
||||||
owner = "dapr";
|
owner = "dapr";
|
||||||
repo = "cli";
|
repo = "cli";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-+P1oXG+uvnFDGis5pz9VUQ4n1C7mjuetXz1OtN7IIrg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
vendorSha256 = "sha256-EvOyOy7DFQtFavOC9eBUZRJsj3pNdx7jumVmZ/THdaM=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/cli $out/bin/dapr
|
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; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue