nixpkgs/pkgs/development/tools/dapr/cli/default.nix

30 lines
645 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2020-08-06 00:43:45 +00:00
2021-04-02 13:44:54 +00:00
buildGoModule rec {
2020-08-06 00:43:45 +00:00
pname = "dapr";
2021-04-05 15:13:28 +00:00
version = "1.1.0";
2021-04-02 13:44:54 +00:00
2021-04-05 15:13:28 +00:00
vendorSha256 = "0fng5a1pvpbwil79xapdalzgkgc9dwsdxs6bznjfwnkyd1vvw6fm";
2020-08-06 00:43:45 +00:00
src = fetchFromGitHub {
2021-04-05 15:13:28 +00:00
sha256 = "0x2mvlzlmcik6ys6xp722px9l4lj9ssyxb06bzxd7yj7m1wwcwp9";
2020-08-06 00:43:45 +00:00
owner = "dapr";
repo = "cli";
rev = "v${version}";
};
2020-08-16 00:23:57 +00:00
doCheck = false;
2020-08-06 00:43:45 +00:00
postInstall = ''
mv $out/bin/cli $out/bin/dapr
'';
meta = with lib; {
2020-08-06 00:43:45 +00:00
homepage = "https://dapr.io";
description = "A CLI for managing Dapr, the distributed application runtime";
license = licenses.mit;
maintainers = with maintainers; [ lucperkins ];
};
}