about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-09-30 14:32:38 -0400
committerGitHub <noreply@github.com>2022-09-30 14:32:38 -0400
commitd3853783ed78b4b0b151693d15c557af5078f88a (patch)
treef694f4c24f98aed5e6003c70bb5b7c3eaa1306df /pkgs/servers
parent49e342ba1f17b0d9d6bf1b14b703dc5eb4ec6fec (diff)
parent711e539d2130b479c954c240479242172d42edba (diff)
Merge pull request #193734 from dit7ya/microbin
microbin: init at 1.1.0
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/microbin/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/servers/microbin/default.nix b/pkgs/servers/microbin/default.nix
new file mode 100644
index 0000000000000..82e30b57c3c8f
--- /dev/null
+++ b/pkgs/servers/microbin/default.nix
@@ -0,0 +1,24 @@
+{ lib
+, rustPlatform
+, fetchCrate
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "microbin";
+  version = "1.1.0";
+
+  # GitHub sources do not have Cargo.lock
+  src = fetchCrate {
+    inherit pname version;
+    sha256 = "sha256-gfEO7Rrzc4KSnSXFrMmGLrTXuZIUCdumt2N429nHPi8=";
+  };
+
+  cargoSha256 = "sha256-k/5CG8bf5RuO6K9mEj6seqV6AuWMqatBRDaSS0guhi0=";
+
+  meta = with lib; {
+    description = "A tiny, self-contained, configurable paste bin and URL shortener written in Rust";
+    homepage = "https://github.com/szabodanika/microbin";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ dit7ya ];
+  };
+}