about summary refs log tree commit diff
path: root/pkgs/servers/gemini
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2021-02-03 18:38:46 +0000
committer06kellyjac <dev@j-k.io>2021-02-03 18:38:46 +0000
commit11bae6e9fbe2b029399a5f9bf1d1420942160219 (patch)
treec6cd1581a668c54f8d62c21dbc32a72e54dafb2b /pkgs/servers/gemini
parent0d796ea77934b0c84225c1aab534ee321aede1a8 (diff)
agate: init at 2.3.0
Diffstat (limited to 'pkgs/servers/gemini')
-rw-r--r--pkgs/servers/gemini/agate/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/servers/gemini/agate/default.nix b/pkgs/servers/gemini/agate/default.nix
new file mode 100644
index 0000000000000..7c15f4769e367
--- /dev/null
+++ b/pkgs/servers/gemini/agate/default.nix
@@ -0,0 +1,29 @@
+{ lib, fetchFromGitHub, rustPlatform, installShellFiles }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "agate";
+  version = "2.3.0";
+
+  src = fetchFromGitHub {
+    owner = "mbrubeck";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-rwoEZnxh0x+xaggJuoeSjE1ctF43ChW5awcDJyoWioA=";
+  };
+
+  cargoSha256 = "sha256-ey/fUHkPoWjWlLjh1WNpwMKOkdQKgFYcLwQdx2RQ3CI=";
+
+  meta = with lib; {
+    homepage = "gemini://gem.limpet.net/agate";
+    changelog = "gemini://gem.limpet.net/agate";
+    description = "Very simple server for the Gemini hypertext protocol";
+    longDescription = ''
+      Agate is a server for the Gemini network protocol, built with the Rust
+      programming language. Agate has very few features, and can only serve
+      static files. It uses async I/O, and should be quite efficient even when
+      running on low-end hardware and serving many concurrent requests.
+    '';
+    license = licenses.asl20;
+    maintainers = with maintainers; [ jk ];
+  };
+}