1{ lib, fetchurl, buildDunePackage
2, cstruct, domain-name, fmt, logs, hkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, lwt, ptime, x509
3, ipaddr
4, alcotest, cstruct-unix, ounit2, randomconv
5}:
6
7buildDunePackage rec {
8 pname = "tls";
9 version = "0.17.3";
10
11 src = fetchurl {
12 url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
13 hash = "sha256-R+XezdMO0cNnc2RYpjrgd0dBR7PdZ1wUWQuBqS1QMdQ=";
14 };
15
16 minimalOCamlVersion = "4.08";
17
18 propagatedBuildInputs = [
19 cstruct
20 domain-name
21 fmt
22 logs
23 hkdf
24 mirage-crypto
25 mirage-crypto-ec
26 mirage-crypto-pk
27 mirage-crypto-rng
28 lwt
29 ptime
30 x509
31 ipaddr
32 ];
33
34 doCheck = true;
35 checkInputs = [
36 alcotest
37 cstruct-unix
38 ounit2
39 randomconv
40 ];
41
42 meta = with lib; {
43 homepage = "https://github.com/mirleft/ocaml-tls";
44 description = "TLS in pure OCaml";
45 license = licenses.bsd2;
46 maintainers = with maintainers; [ sternenseemann ];
47 };
48}