diff options
author | Aaron Jheng <wentworth@outlook.com> | 2022-05-15 03:52:48 +0000 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2022-05-19 01:48:34 +0000 |
commit | cf4234201ca369c594cf62b587706bb177c35e1a (patch) | |
tree | 3f3181c6ef9eb3d91109e01ff38302c82da2b691 /pkgs/applications/networking/cluster/temporal-cli | |
parent | 118ec238bfb788a34f1d53c4d95931fadfa70367 (diff) |
temporal-cli: init at 1.16.1
Diffstat (limited to 'pkgs/applications/networking/cluster/temporal-cli')
-rw-r--r-- | pkgs/applications/networking/cluster/temporal-cli/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/temporal-cli/default.nix b/pkgs/applications/networking/cluster/temporal-cli/default.nix new file mode 100644 index 0000000000000..49d64283ca0f0 --- /dev/null +++ b/pkgs/applications/networking/cluster/temporal-cli/default.nix @@ -0,0 +1,38 @@ +{ lib, fetchFromGitHub, fetchpatch, buildGoModule, testers, temporal-cli }: + +buildGoModule rec { + pname = "temporal-cli"; + version = "1.16.1"; + + src = fetchFromGitHub { + owner = "temporalio"; + repo = "tctl"; + rev = "v${version}"; + sha256 = "sha256-WNdu/62/VmxTmzAvzx3zIlcAAlEmpN0yKzQOSUtrL8s="; + }; + + patches = [ + # Fix tests + (fetchpatch { + name = "fix-tests.patch"; + url = "https://github.com/temporalio/tctl/pull/203/commits/2b113da137a3a925e8fbd7c18bdaaefc31397db4.patch"; + sha256 = "sha256-HFPwbmLZ2uPHzaHvYoB4MTZvMVyzvUKggA76/bh50DQ="; + }) + ]; + + vendorSha256 = "sha256-WF3T+HNisfR0JoKkHCC77kmHmsGZ9NfQ7UCwOmpCG/o="; + + 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"; + }; +} |