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