about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMostly Void <7rat13@gmail.com>2022-09-30 21:30:07 +0530
committerMostly Void <7rat13@gmail.com>2022-09-30 21:30:07 +0530
commit711e539d2130b479c954c240479242172d42edba (patch)
treefe9c8d3e9e13138954b4292f45b668fa72a097e9 /pkgs
parentb881869205e82652b4c5ce7ebff3b3fea5a4817b (diff)
microbin: init at 1.1.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/microbin/default.nix24
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 26 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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d58ecb7625b51..d02da565cf743 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8995,6 +8995,8 @@ with pkgs;
 
   mfoc = callPackage ../tools/security/mfoc { };
 
+  microbin = callPackage ../servers/microbin { };
+
   microdnf = callPackage ../tools/package-management/microdnf { };
 
   microplane = callPackage ../tools/misc/microplane { };