diff --git a/pkgs/applications/networking/cluster/temporal-cli/default.nix b/pkgs/applications/networking/cluster/temporal-cli/default.nix index 0d326d5ad458..6d86bc79e6b2 100644 --- a/pkgs/applications/networking/cluster/temporal-cli/default.nix +++ b/pkgs/applications/networking/cluster/temporal-cli/default.nix @@ -2,21 +2,27 @@ buildGoModule rec { pname = "temporal-cli"; - version = "1.16.2"; + version = "1.17.0"; src = fetchFromGitHub { owner = "temporalio"; repo = "tctl"; rev = "v${version}"; - sha256 = "sha256-KLcCFQJlFeioIhqrbkhgoNPcbAYvy1ESG8x9Y/I7+nw="; + sha256 = "sha256-XEN4Ntt7yHng1+3E5SlxthEWPXJ+kSx9L1GbW9bV03Y="; }; - vendorSha256 = "sha256-kczmoP32/V0HHeC3Mr+giuMB+McVTNeC2F+t1ohY4/U="; + vendorSha256 = "sha256-9bgovXVj+qddfDSI4DTaNYH4H8Uc4DZqeVYG5TWXTNw="; ldflags = [ "-s" "-w" ]; + preCheck = '' + export HOME=$(mktemp -d) + ''; + passthru.tests.version = testers.testVersion { package = temporal-cli; + # the app writes a default config file at startup + command = "HOME=$(mktemp -d) ${meta.mainProgram} --version"; }; meta = with lib; {