2020-05-15 21:57:56 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ppx_sexp_conv, ppx_cstruct, cstruct
|
2020-04-24 23:36:52 +00:00
|
|
|
, cstruct-sexp, sexplib, mirage-crypto, mirage-crypto-pk, mirage-crypto-rng
|
2020-05-15 21:57:56 +00:00
|
|
|
, x509, domain-name, fmt, cstruct-unix, ounit2, ocaml_lwt, ptime
|
|
|
|
, hacl_x25519, fiat-p256, hkdf, logs, alcotest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-07-18 16:06:22 +00:00
|
|
|
minimumOCamlVersion = "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "0.12.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tls";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "1zsh3fx8l3d9lc9w516apzabqsix2ss8nv6kbbzjmp2d4hwh818b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-05-15 21:57:56 +00:00
|
|
|
checkInputs = [ cstruct-unix ounit2 alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ ppx_sexp_conv ppx_cstruct cstruct cstruct-sexp
|
|
|
|
sexplib mirage-crypto mirage-crypto-pk mirage-crypto-rng
|
2020-05-15 21:57:56 +00:00
|
|
|
x509 domain-name fmt ocaml_lwt ptime hacl_x25519 fiat-p256
|
|
|
|
hkdf logs ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|