git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.mrmime: init 0.5
commit1531006d915c4a75f37af1a94e6f4c325902569b authorsuperherointj <5861043+superherointj@users.noreply.github.com> dateMon 25 Oct 2021, 19:36 (5 years ago) parent0501143
2 files changed+79
pkgs/development/ocaml-modules/mrmime/default.nix+77 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/mrmime/default.nixnew file+77
@@ -0,0 +1,77 @@
1+{ afl-persistent
2+, alcotest
3+, angstrom
4+, base64
5+, bigarray-compat
6+, bigarray-overlap
7+, bigstringaf
8+, buildDunePackage
9+, emile
10+, fetchzip
11+, fmt
12+, fpath
13+, hxd
14+, ipaddr
15+, jsonm
16+, ke
17+, lib
18+, mirage-crypto-rng
19+, pecu
20+, prettym
21+, ptime
22+, rosetta
23+, rresult
24+, unstrctrd
25+, uutf
26+}:
27+
28+buildDunePackage rec {
29+ pname = "mrmime";
30+ version = "0.5.0";
31+
32+ src = fetchzip {
33+ url = "https://github.com/mirage/mrmime/releases/download/v${version}/mrmime-v${version}.tbz";
34+ sha256 = "14k67v0b39b8jq3ny2ymi8g8sqx2gd81mlzsjphdzdqnlx6fk716";
35+ };
36+
37+ useDune2 = true;
38+
39+ buildInputs = [
40+ afl-persistent
41+ bigarray-compat
42+ bigarray-overlap
43+ bigstringaf
44+ fpath
45+ mirage-crypto-rng
46+ ];
47+
48+ propagatedBuildInputs = [
49+ angstrom
50+ base64
51+ emile
52+ fmt
53+ ipaddr
54+ ke
55+ pecu
56+ prettym
57+ ptime
58+ rosetta
59+ rresult
60+ unstrctrd
61+ uutf
62+ ];
63+
64+ checkInputs = [
65+ alcotest
66+ hxd
67+ jsonm
68+ ];
69+ doCheck = true;
70+
71+ meta = {
72+ description = "Parser and generator of mail in OCaml";
73+ license = lib.licenses.mit;
74+ homepage = "https://github.com/mirage/mrmime";
75+ maintainers = with lib.maintainers; [ superherointj ];
76+ };
77+}
pkgs/top-level/ocaml-packages.nix+2
@@ -822,6 +822,8 @@ let
822822
823823 mparser-pcre = callPackage ../development/ocaml-modules/mparser/pcre.nix { };
824824
825+ mrmime = callPackage ../development/ocaml-modules/mrmime { };
826+
825827 mtime = callPackage ../development/ocaml-modules/mtime { };
826828
827829 mustache = callPackage ../development/ocaml-modules/mustache { };