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-31 18:34:02 -0400
committerAndrew Marshall <andrew@johnandrewmarshall.com>2023-07-31 18:34:02 -0400
commit01b07afeaea778bf7612bc6720defbd563186621 (patch)
treeaf8a755c6344726ca480a9bb91bfc8117b63cf2a /pkgs/applications/networking/cluster/temporal-cli/default.nix
parentde72df367566658cef90fecade0255e5259ad740 (diff)
downloadnixpkgs-01b07afeaea778bf7612bc6720defbd563186621.tar
nixpkgs-01b07afeaea778bf7612bc6720defbd563186621.tar.gz
nixpkgs-01b07afeaea778bf7612bc6720defbd563186621.tar.bz2
nixpkgs-01b07afeaea778bf7612bc6720defbd563186621.tar.lz
nixpkgs-01b07afeaea778bf7612bc6720defbd563186621.tar.xz
nixpkgs-01b07afeaea778bf7612bc6720defbd563186621.tar.zst
nixpkgs-01b07afeaea778bf7612bc6720defbd563186621.zip
temporal-cli: Disable tests on x86_64-darwin due to Rosetta 2
They succeed for me (with multiple runs) on x86_64-darwin native (no
Rosetta 2). Afaik, Hydra performs x86_64-darwin builds on Rosetta 2 on
aarch64-darwin. I do not have the hardware to reproduce this (and it
could be a build issue), so let’s disable the tests for now and go from
there.
Diffstat (limited to 'pkgs/applications/networking/cluster/temporal-cli/default.nix')
-rw-r--r--pkgs/applications/networking/cluster/temporal-cli/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/networking/cluster/temporal-cli/default.nix b/pkgs/applications/networking/cluster/temporal-cli/default.nix
index c35cf14e064..126a083b5b3 100644
--- a/pkgs/applications/networking/cluster/temporal-cli/default.nix
+++ b/pkgs/applications/networking/cluster/temporal-cli/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, buildGoModule, installShellFiles, symlinkJoin }:
+{ lib, fetchFromGitHub, buildGoModule, installShellFiles, symlinkJoin, stdenv }:
 
 let
   metaCommon = with lib; {
@@ -40,6 +40,9 @@ let
       "-X github.com/temporalio/cli/headers.Version=${version}"
     ];
 
+    # Tests fail with x86 on macOS Rosetta 2
+    doCheck = !(stdenv.isDarwin && stdenv.hostPlatform.isx86_64);
+
     preCheck = ''
       export HOME=$(mktemp -d)
     '';