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