nixpkgs/pkgs/applications/networking/cluster/temporal-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
861 B
Nix
Raw Normal View History

2022-06-25 01:57:43 +00:00
{ lib, fetchFromGitHub, buildGoModule, testers, temporal-cli }:
2022-05-15 03:52:48 +00:00
buildGoModule rec {
pname = "temporal-cli";
2022-12-03 00:12:29 +00:00
version = "1.17.2";
2022-05-15 03:52:48 +00:00
src = fetchFromGitHub {
owner = "temporalio";
repo = "tctl";
rev = "v${version}";
2022-12-03 00:12:29 +00:00
hash = "sha256-QID0VtARbJiTIQm2JeaejQ5VpJsAIHfZtws7i2UN8dM=";
2022-05-15 03:52:48 +00:00
};
2022-12-03 00:12:29 +00:00
vendorHash = "sha256-9bgovXVj+qddfDSI4DTaNYH4H8Uc4DZqeVYG5TWXTNw=";
2022-05-15 03:52:48 +00:00
ldflags = [ "-s" "-w" ];
2022-10-05 06:04:56 +00:00
preCheck = ''
export HOME=$(mktemp -d)
'';
2022-05-15 03:52:48 +00:00
passthru.tests.version = testers.testVersion {
package = temporal-cli;
2022-10-05 06:04:56 +00:00
# the app writes a default config file at startup
command = "HOME=$(mktemp -d) ${meta.mainProgram} --version";
2022-05-15 03:52:48 +00:00
};
meta = with lib; {
description = "Temporal CLI";
homepage = "https://temporal.io";
license = licenses.mit;
maintainers = with maintainers; [ aaronjheng ];
mainProgram = "tctl";
};
}