2021-07-13 22:34:07 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "temporal";
|
2022-02-18 19:20:28 +00:00
|
|
|
version = "1.15.0";
|
2021-07-13 22:34:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "temporalio";
|
|
|
|
repo = "temporal";
|
|
|
|
rev = "v${version}";
|
2022-02-18 19:20:28 +00:00
|
|
|
sha256 = "sha256-5Tu838086qgIa2fqda2xi7vn4JbkENVJH4XU3NwW7Ic=";
|
2021-07-13 22:34:07 +00:00
|
|
|
};
|
|
|
|
|
2022-02-18 19:20:28 +00:00
|
|
|
vendorSha256 = "sha256-caRBgkuHQ38r6OsKQCJ2pxAe8s6mc4g/QCIsCEXvY3M=";
|
2021-07-13 22:34:07 +00:00
|
|
|
|
|
|
|
# Errors:
|
|
|
|
# > === RUN TestNamespaceHandlerGlobalNamespaceDisabledSuite
|
|
|
|
# gocql: unable to dial control conn 127.0.0.1:9042: dial tcp 127.0.0.1:9042: connect: connection refused
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -Dm755 "$GOPATH/bin/cli" -T $out/bin/tctl
|
2022-02-18 19:20:28 +00:00
|
|
|
install -Dm755 "$GOPATH/bin/authorization" -T $out/bin/tctl-authorization-plugin
|
2021-07-13 22:34:07 +00:00
|
|
|
install -Dm755 "$GOPATH/bin/server" -T $out/bin/temporal-server
|
2022-02-18 20:08:48 +00:00
|
|
|
install -Dm755 "$GOPATH/bin/cassandra" -T $out/bin/temporal-cassandra-tool
|
|
|
|
install -Dm755 "$GOPATH/bin/sql" -T $out/bin/temporal-sql-tool
|
2021-07-13 22:34:07 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/tctl --version | grep ${version} > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A microservice orchestration platform which enables developers to build scalable applications without sacrificing productivity or reliability";
|
|
|
|
homepage = "https://temporal.io";
|
2022-02-18 19:20:28 +00:00
|
|
|
changelog = "https://github.com/temporalio/temporal/releases/tag/v${version}";
|
2021-07-13 22:34:07 +00:00
|
|
|
license = licenses.mit;
|
2022-02-18 19:20:28 +00:00
|
|
|
maintainers = with maintainers; [ titanous ];
|
2021-07-13 22:34:07 +00:00
|
|
|
};
|
|
|
|
}
|