about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-25 22:47:00 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-25 22:47:00 +0100
commitad5bc34a23eeb3932ac18e0497c8eb7f8dda4ec6 (patch)
tree0d87fe675e882031b7b0c3bf1a446ea067253bef
parentb97ac82e7c7d2af07259d2be5c2a8c5050d682ac (diff)
downloadpnpkgs-ad5bc34a23eeb3932ac18e0497c8eb7f8dda4ec6.tar.gz
pnpkgs-ad5bc34a23eeb3932ac18e0497c8eb7f8dda4ec6.zip
Add agate@1.2.2
-rw-r--r--default.nix1
-rw-r--r--pkgs/agate/default.nix26
2 files changed, 27 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index 104a932..6918718 100644
--- a/default.nix
+++ b/default.nix
@@ -20,6 +20,7 @@
   simple-mtpfs = pkgs.callPackage ./pkgs/simple-mtpfs { };
   task-spooler = pkgs.callPackage ./pkgs/task-spooler { };
   wywozik-todo = pkgs.callPackage ./pkgs/wywozik-todo { };
+  agate = pkgs.callPackage ./pkgs/agate { };
 
   st = pkgs.callPackage ./pkgs/larbs/st { };
   dwm = pkgs.callPackage ./pkgs/larbs/dwm { };
diff --git a/pkgs/agate/default.nix b/pkgs/agate/default.nix
new file mode 100644
index 0000000..eb5a47c
--- /dev/null
+++ b/pkgs/agate/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, rustPlatform, fetchFromGitHub }:
+with stdenv.lib;
+
+let
+  pname = "agate";
+  version = "1.2.2";
+in
+rustPlatform.buildRustPackage {
+  inherit pname version;
+
+  src = fetchFromGitHub {
+    owner = "mbrubeck";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0kfr0xysxh830kxwfwmm9gzpl57b3dbkzrj21dnymwr117vjgjrx";
+  };
+
+  cargoSha256 = "1ggwc1q998mp6pggxrmhhvnkyrdh6jv1w9jw0x0y2mbn26k54j0p";
+
+  meta = {
+    description = "Very simple server for the Gemini hypertext protocol";
+    homepage = "https://github.com/mbrubeck/agate";
+    license = "MIT/Apache-2.0";
+    platforms = platforms.linux;
+  };
+}