2021-06-07 16:47:03 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2021-12-30 10:05:06 +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-07 18:04:47 +00:00
|
|
|
, alcotest, cstruct-unix, ounit2, randomconv
|
2021-06-07 16:47:03 +00:00
|
|
|
}:
|
2016-11-03 00:23:53 +00:00
|
|
|
|
2020-04-13 14:45:56 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tls";
|
2021-12-30 10:05:06 +00:00
|
|
|
version = "0.15.2";
|
2016-11-03 00:23:53 +00:00
|
|
|
|
2020-04-13 14:45:56 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz";
|
2021-12-30 10:05:06 +00:00
|
|
|
sha256 = "b76371757249bbeabb12c333de4ea2a09c095767bdbbc83322538c0da1fc1e36";
|
2016-11-03 00:23:53 +00:00
|
|
|
};
|
|
|
|
|
2021-06-07 16:47:03 +00:00
|
|
|
minimumOCamlVersion = "4.08";
|
2020-04-13 14:45:56 +00:00
|
|
|
useDune2 = true;
|
2016-11-03 00:23:53 +00:00
|
|
|
|
2021-06-07 16:47:03 +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 10:05:06 +00:00
|
|
|
ipaddr
|
|
|
|
ipaddr-sexp
|
2021-06-07 16:47:03 +00:00
|
|
|
];
|
2018-01-15 04:01:50 +00:00
|
|
|
|
2021-06-07 16:47:03 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
|
|
|
cstruct-unix
|
|
|
|
ounit2
|
2021-06-07 18:04:47 +00:00
|
|
|
randomconv
|
2021-06-07 16:47:03 +00:00
|
|
|
];
|
2016-11-03 00:23:53 +00:00
|
|
|
|
2020-05-12 16:38:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mirleft/ocaml-tls";
|
2016-11-03 00:23:53 +00:00
|
|
|
description = "TLS in pure OCaml";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|