mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
temporal-cli: fix missing meta.platforms preventing Hydra builds (#243518)
This commit is contained in:
parent
52d568e90f
commit
1a2d266180
1 changed files with 17 additions and 5 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue