diff --git a/pkgs/by-name/te/temporal-ui-server/package.nix b/pkgs/by-name/te/temporal-ui-server/package.nix new file mode 100644 index 000000000000..7546e44b7da0 --- /dev/null +++ b/pkgs/by-name/te/temporal-ui-server/package.nix @@ -0,0 +1,45 @@ +{ + lib, + fetchFromGitHub, + buildGoModule, + nix-update-script, + versionCheckHook, +}: + +buildGoModule (finalAttrs: { + pname = "temporal-ui-server"; + version = "2.43.2"; + + src = fetchFromGitHub { + owner = "temporalio"; + repo = "ui-server"; + tag = "v${finalAttrs.version}"; + hash = "sha256-Z7a/21whiCjiQiqKE8aDcptSFw+op82xnqXfzVjGw6o="; + }; + + vendorHash = "sha256-HmysULH81cYOuMyW9qZRsQhv7chDobD7PnWmu3uCvJw="; + + postInstall = '' + mv $out/bin/server $out/bin/temporal-ui-server + ''; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + changelog = "https://github.com/temporalio/ui-server/releases/tag/${finalAttrs.src.tag}"; + homepage = "https://github.com/temporalio/ui-server"; + description = "Golang Server for Temporal Web UI"; + longDescription = '' + The Temporal Web UI provides users with Workflow Execution state and metadata + for debugging purposes. This golang server provides a binary that you can run + to serve the compiled temporal ui (https://github.com/temporalio/ui). + ''; + mainProgram = "temporal-ui-server"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ breakds ]; + }; +})