2021-07-13 23:34:07 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "temporal";
|
2021-08-23 06:19:14 +01:00
|
|
|
version = "1.11.4";
|
2021-07-13 23:34:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "temporalio";
|
|
|
|
repo = "temporal";
|
|
|
|
rev = "v${version}";
|
2021-08-23 06:19:14 +01:00
|
|
|
sha256 = "sha256-JVwFNhWAoZk3ZRl180KgE94DQPbowRya9irwwJQyN3g=";
|
2021-07-13 23:34:07 +01:00
|
|
|
};
|
|
|
|
|
2021-07-24 02:11:57 +01:00
|
|
|
vendorSha256 = "sha256-eO/23MQpdXQNPCIzMC9nxvrgUFuEPABJ7vkBZKv+XZI=";
|
2021-07-13 23:34:07 +01: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
|
|
|
|
install -Dm755 "$GOPATH/bin/cassandra" -T $out/bin/temporal-cassandra
|
|
|
|
install -Dm755 "$GOPATH/bin/server" -T $out/bin/temporal-server
|
|
|
|
install -Dm755 "$GOPATH/bin/sql" -T $out/bin/temporal-sql
|
|
|
|
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";
|
|
|
|
downloadPage = "https://github.com/temporalio/temporal";
|
|
|
|
homepage = "https://temporal.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ superherointj ];
|
|
|
|
};
|
|
|
|
}
|