about summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorStanisław Pitucha <git@viraptor.info>2022-11-02 11:17:21 +1100
committerGitHub <noreply@github.com>2022-11-02 11:17:21 +1100
commitd96a2451b3da8f46d9996f051015b8cc3a38cf30 (patch)
treebe1bffb94f506bf62aa25a15b942a5a5e9eb3ef0 /pkgs/applications/networking
parent70e765038620c796a6efaef0235cbf4e54dd6689 (diff)
parent31854fc954047d83b1daafe09156f0a70b8eae36 (diff)
Merge pull request #196163 from lucperkins/temporalite
temporalite: init at 0.2.0
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/cluster/temporalite/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/temporalite/default.nix b/pkgs/applications/networking/cluster/temporalite/default.nix
new file mode 100644
index 0000000000000..8a4d53797f5ba
--- /dev/null
+++ b/pkgs/applications/networking/cluster/temporalite/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "temporalite";
+  version = "0.2.0";
+
+  src = fetchFromGitHub {
+    owner = "temporalio";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-rLEkWg5LNVb7i/2IARKGuP9ugaVJA9pwYbKLm0QLmOc=";
+  };
+
+  vendorSha256 = "sha256-vjuwh/HRRYfB6J49rfJxif12nYPnbBodWF9hTiGygS8=";
+
+  subPackages = [ "cmd/temporalite" ];
+
+  postPatch = ''
+    substituteInPlace cmd/temporalite/ui_test.go \
+      --replace "TestNewUIConfigWithMissingConfigFile" "SkipNewUIConfigWithMissingConfigFile"
+
+    substituteInPlace cmd/temporalite/mtls_test.go \
+      --replace "TestMTLSConfig" "SkipMTLSConfig"
+  '';
+
+  meta = with lib; {
+    description = "An experimental distribution of Temporal that runs as a single process";
+    homepage = "https://github.com/temporalio/temporalite";
+    license = licenses.mit;
+    maintainers = with maintainers; [ lucperkins ];
+  };
+}