2021-06-28 23:13:55 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-12-30 13:39:12 +00:00
|
|
|
, cstruct, cstruct-sexp, domain-name, fmt, ppx_cstruct, ppx_sexp_conv, logs, hkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, ocaml_lwt, ptime, sexplib, x509
|
|
|
|
, ipaddr, ipaddr-sexp
|
2021-06-28 23:13:55 +00:00
|
|
|
, alcotest, cstruct-unix, ounit2, randomconv
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tls";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.15.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-18 16:21:45 +00:00
|
|
|
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-X40dVrBvYGnv0dCj3gxFy0iNPRPrfxMshOx7o/DRw4I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
cstruct-sexp
|
|
|
|
domain-name
|
|
|
|
fmt
|
|
|
|
ppx_cstruct
|
|
|
|
ppx_sexp_conv
|
|
|
|
logs
|
|
|
|
hkdf
|
|
|
|
mirage-crypto
|
|
|
|
mirage-crypto-ec
|
|
|
|
mirage-crypto-pk
|
|
|
|
mirage-crypto-rng
|
|
|
|
ocaml_lwt
|
|
|
|
ptime
|
|
|
|
sexplib
|
|
|
|
x509
|
2021-12-30 13:39:12 +00:00
|
|
|
ipaddr
|
|
|
|
ipaddr-sexp
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alcotest
|
|
|
|
cstruct-unix
|
|
|
|
ounit2
|
|
|
|
randomconv
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mirleft/ocaml-tls";
|
|
|
|
description = "TLS in pure OCaml";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|