temporal-cli: fix missing meta.platforms preventing Hydra builds (#243518)

Changed files
+17 -5
pkgs
applications
networking
cluster
temporal-cli
+17 -5
pkgs/applications/networking/cluster/temporal-cli/default.nix
···
{ 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 = ''
···
'';
__darwinAllowLocalNetworking = true;
+
+
meta = metaCommon // {
+
mainProgram = "temporal";
+
};
};
tctl = buildGoModule rec {
···
'';
__darwinAllowLocalNetworking = true;
+
+
meta = metaCommon // {
+
mainProgram = "tctl";
+
};
};
in
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);
};
}