Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ afl-persistent
2, alcotest
3, angstrom
4, base64
5, bigarray-compat
6, bigarray-overlap
7, bigstringaf
8, buildDunePackage
9, cmdliner
10, emile
11, fetchzip
12, fmt
13, fpath
14, hxd
15, ipaddr
16, jsonm
17, ke
18, lib
19, mirage-crypto-rng
20, ocaml
21, pecu
22, prettym
23, ptime
24, rosetta
25, rresult
26, unstrctrd
27, uutf
28}:
29
30buildDunePackage rec {
31 pname = "mrmime";
32 version = "0.5.0";
33
34 src = fetchzip {
35 url = "https://github.com/mirage/mrmime/releases/download/v${version}/mrmime-v${version}.tbz";
36 sha256 = "14k67v0b39b8jq3ny2ymi8g8sqx2gd81mlzsjphdzdqnlx6fk716";
37 };
38
39 duneVersion = "3";
40
41 buildInputs = [ cmdliner hxd ];
42
43 propagatedBuildInputs = [
44 angstrom
45 base64
46 emile
47 fmt
48 ipaddr
49 ke
50 pecu
51 prettym
52 ptime
53 rosetta
54 rresult
55 unstrctrd
56 uutf
57 afl-persistent
58 bigarray-compat
59 bigarray-overlap
60 bigstringaf
61 fpath
62 mirage-crypto-rng
63 ];
64
65 checkInputs = [
66 alcotest
67 jsonm
68 ];
69 doCheck = lib.versionOlder ocaml.version "5.0";
70
71 meta = {
72 description = "Parser and generator of mail in OCaml";
73 homepage = "https://github.com/mirage/mrmime";
74 license = lib.licenses.mit;
75 maintainers = [ ];
76 mainProgram = "mrmime.generate";
77 };
78}