diff options
author | Luc Perkins <luc@blockfi.com> | 2020-08-05 17:43:45 -0700 |
---|---|---|
committer | Luc Perkins <luc@blockfi.com> | 2020-08-06 09:15:55 -0700 |
commit | cb3ba43e4305f43908d36e9a00d1257838ac119b (patch) | |
tree | a36187110f8c16a10b663d4243c5ba278d86ee62 /pkgs/development/tools/dapr | |
parent | 8d57f75f7a1d04ecbf30333c104c9124cfca9331 (diff) |
dapr: init at 0.9.0
Diffstat (limited to 'pkgs/development/tools/dapr')
-rw-r--r-- | pkgs/development/tools/dapr/cli/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/tools/dapr/cli/default.nix b/pkgs/development/tools/dapr/cli/default.nix new file mode 100644 index 000000000000..2821af2927a7 --- /dev/null +++ b/pkgs/development/tools/dapr/cli/default.nix @@ -0,0 +1,29 @@ +{ buildGoModule, fetchFromGitHub, stdenv }: + +let + pname = "dapr"; + version = "0.9.0"; + sha256 = "1vdbh5pg3j7kqqqhhf4d9xfzbpqmjc4x373sk43pb05prg4w71s7"; + vendorSha256 = "19qcpd5i60xmsr8m8mx16imm5falkqcgqpwpx3clfvqxjyflglpp"; +in buildGoModule { + inherit pname version vendorSha256; + + src = fetchFromGitHub { + inherit sha256; + + owner = "dapr"; + repo = "cli"; + rev = "v${version}"; + }; + + postInstall = '' + mv $out/bin/cli $out/bin/dapr + ''; + + meta = with stdenv.lib; { + homepage = "https://dapr.io"; + description = "A CLI for managing Dapr, the distributed application runtime"; + license = licenses.mit; + maintainers = with maintainers; [ lucperkins ]; + }; +} |