Unverified Commit 1a2d2661 authored by Andrew Marshall's avatar Andrew Marshall Committed by GitHub
Browse files

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

parent 52d568e9
Loading
Loading
Loading
Loading
+17 −5
Original line number Diff line number Diff line
{ 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);
  };
}