about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-01-15 12:12:14 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2021-01-22 09:26:17 +0100
commit47818a1ff393841a84193aed20de386b95e575db (patch)
tree0feea636439e1c1c239128bea2ae52ed654d96ff /pkgs/development/ocaml-modules
parentbf010dac668c26989a6ffef967730076eb46ed12 (diff)
downloadnixlib-47818a1ff393841a84193aed20de386b95e575db.tar
nixlib-47818a1ff393841a84193aed20de386b95e575db.tar.gz
nixlib-47818a1ff393841a84193aed20de386b95e575db.tar.bz2
nixlib-47818a1ff393841a84193aed20de386b95e575db.tar.lz
nixlib-47818a1ff393841a84193aed20de386b95e575db.tar.xz
nixlib-47818a1ff393841a84193aed20de386b95e575db.tar.zst
nixlib-47818a1ff393841a84193aed20de386b95e575db.zip
ocamlPackages.pecu: init at 0.5
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/pecu/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/pecu/default.nix b/pkgs/development/ocaml-modules/pecu/default.nix
new file mode 100644
index 000000000000..0059bbdec3ce
--- /dev/null
+++ b/pkgs/development/ocaml-modules/pecu/default.nix
@@ -0,0 +1,26 @@
+{ lib, buildDunePackage, ocaml, fetchurl, fmt, alcotest }:
+
+buildDunePackage rec {
+  pname = "pecu";
+  version = "0.5";
+
+  useDune2 = true;
+
+  minimumOCamlVersion = "4.03";
+
+  src = fetchurl {
+    url = "https://github.com/mirage/pecu/releases/download/v0.5/pecu-v0.5.tbz";
+    sha256 = "713753cd6ba3f4609a26d94576484e83ffef7de5f2208a2993576a1b22f0e0e7";
+  };
+
+  # fmt availability
+  doCheck = lib.versionAtLeast ocaml.version "4.05";
+  checkInputs = [ fmt alcotest ];
+
+  meta = with lib; {
+    description = "Encoder/Decoder of Quoted-Printable (RFC2045 & RFC2047)";
+    license = licenses.mit;
+    homepage = "https://github.com/mirage/pecu";
+    maintainers = [ maintainers.sternenseemann ];
+  };
+}