2021-06-07 16:47:03 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2023-09-01 04:50:28 +00:00
|
|
|
, cstruct, domain-name, fmt, logs, hkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, lwt, ptime, x509
|
|
|
|
, ipaddr
|
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";
|
2023-09-01 04:50:28 +00:00
|
|
|
version = "0.17.1";
|
2016-11-03 00:23:53 +00:00
|
|
|
|
2020-04-13 14:45:56 +00:00
|
|
|
src = fetchurl {
|
2022-05-23 05:18:37 +00:00
|
|
|
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
|
2023-09-01 04:50:28 +00:00
|
|
|
hash = "sha256-gBDStt4UjaIoaSgYHSM71yD6YPoVez1CULyg3QCMXT8=";
|
2016-11-03 00:23:53 +00:00
|
|
|
};
|
|
|
|
|
2023-01-13 13:40:29 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2016-11-03 00:23:53 +00:00
|
|
|
|
2021-06-07 16:47:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
domain-name
|
|
|
|
fmt
|
|
|
|
logs
|
|
|
|
hkdf
|
|
|
|
mirage-crypto
|
|
|
|
mirage-crypto-ec
|
|
|
|
mirage-crypto-pk
|
|
|
|
mirage-crypto-rng
|
2023-09-01 04:50:28 +00:00
|
|
|
lwt
|
2021-06-07 16:47:03 +00:00
|
|
|
ptime
|
|
|
|
x509
|
2021-12-30 10:05:06 +00:00
|
|
|
ipaddr
|
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;
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [
|
2021-06-07 16:47:03 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|