nixpkgs/pkgs/applications/networking/cluster/temporal-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
694 B
Nix
Raw Normal View History

2022-06-25 01:57:43 +00:00
{ lib, fetchFromGitHub, buildGoModule, testers, temporal-cli }:
2022-05-15 03:52:48 +00:00
buildGoModule rec {
pname = "temporal-cli";
2022-06-25 01:57:43 +00:00
version = "1.16.2";
2022-05-15 03:52:48 +00:00
src = fetchFromGitHub {
owner = "temporalio";
repo = "tctl";
rev = "v${version}";
2022-06-25 01:57:43 +00:00
sha256 = "sha256-KLcCFQJlFeioIhqrbkhgoNPcbAYvy1ESG8x9Y/I7+nw=";
2022-05-15 03:52:48 +00:00
};
2022-06-25 01:57:43 +00:00
vendorSha256 = "sha256-kczmoP32/V0HHeC3Mr+giuMB+McVTNeC2F+t1ohY4/U=";
2022-05-15 03:52:48 +00:00
ldflags = [ "-s" "-w" ];
passthru.tests.version = testers.testVersion {
package = temporal-cli;
};
meta = with lib; {
description = "Temporal CLI";
homepage = "https://temporal.io";
license = licenses.mit;
maintainers = with maintainers; [ aaronjheng ];
mainProgram = "tctl";
};
}