summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/temporal-cli/default.nix
diff options
context:
space:
mode:
authorAndrew Marshall <andrew@johnandrewmarshall.com>2023-07-24 10:44:55 -0400
committerGitHub <noreply@github.com>2023-07-24 16:44:55 +0200
commit1a2d2661803baa43f223896fe043aa8b99f0ab27 (patch)
tree72839a0035ff04a8e24dd208ff5312b0abab2639 /pkgs/applications/networking/cluster/temporal-cli/default.nix
parent52d568e90fb63b121add1d13ffc9e456f9896261 (diff)
downloadnixpkgs-1a2d2661803baa43f223896fe043aa8b99f0ab27.tar
nixpkgs-1a2d2661803baa43f223896fe043aa8b99f0ab27.tar.gz
nixpkgs-1a2d2661803baa43f223896fe043aa8b99f0ab27.tar.bz2
nixpkgs-1a2d2661803baa43f223896fe043aa8b99f0ab27.tar.lz
nixpkgs-1a2d2661803baa43f223896fe043aa8b99f0ab27.tar.xz
nixpkgs-1a2d2661803baa43f223896fe043aa8b99f0ab27.tar.zst
nixpkgs-1a2d2661803baa43f223896fe043aa8b99f0ab27.zip
temporal-cli: fix missing meta.platforms preventing Hydra builds (#243518)
Diffstat (limited to 'pkgs/applications/networking/cluster/temporal-cli/default.nix')
-rw-r--r--pkgs/applications/networking/cluster/temporal-cli/default.nix22
1 files changed, 17 insertions, 5 deletions
diff --git a/pkgs/applications/networking/cluster/temporal-cli/default.nix b/pkgs/applications/networking/cluster/temporal-cli/default.nix
index 6d30171e1e0..c35cf14e064 100644
--- a/pkgs/applications/networking/cluster/temporal-cli/default.nix
+++ b/pkgs/applications/networking/cluster/temporal-cli/default.nix
@@ -1,6 +1,13 @@
 { lib, fetchFromGitHub, buildGoModule, installShellFiles, symlinkJoin }:
 
 let
+  metaCommon = with lib; {
+    description = "Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal";
+    homepage = "https://docs.temporal.io/cli";
+    license = licenses.mit;
+    maintainers = with maintainers; [ aaronjheng ];
+  };
+
   overrideModAttrs = old: {
     # https://gitlab.com/cznic/libc/-/merge_requests/10
     postBuild = ''
@@ -44,6 +51,10 @@ let
     '';
 
     __darwinAllowLocalNetworking = true;
+
+    meta = metaCommon // {
+      mainProgram = "temporal";
+    };
   };
 
   tctl = buildGoModule rec {
@@ -78,6 +89,10 @@ let
     '';
 
     __darwinAllowLocalNetworking = true;
+
+    meta = metaCommon // {
+      mainProgram = "tctl";
+    };
   };
 in
 symlinkJoin rec {
@@ -92,11 +107,8 @@ symlinkJoin rec {
 
   passthru = { inherit tctl tctl-next; };
 
-  meta = with lib; {
-    description = "Temporal CLI";
-    homepage = "https://temporal.io";
-    license = licenses.mit;
-    maintainers = with maintainers; [ aaronjheng ];
+  meta = metaCommon // {
     mainProgram = "temporal";
+    platforms = lib.unique (lib.concatMap (drv: drv.meta.platforms) paths);
   };
 }