8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
31 lines
1 KiB
Nix
31 lines
1 KiB
Nix
{ stdenv, fetchurl, buildDunePackage, ppx_sexp_conv, ppx_cstruct, cstruct
|
|
, cstruct-sexp, sexplib, mirage-crypto, mirage-crypto-pk, mirage-crypto-rng
|
|
, x509, domain-name, fmt, cstruct-unix, ounit2, ocaml_lwt, ptime }:
|
|
|
|
buildDunePackage rec {
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
version = "0.11.1";
|
|
pname = "tls";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz";
|
|
sha256 = "0ms13fbaxgmpbviazlfa4hb7nmi7s22nklc7ns926b0rr1aq1069";
|
|
};
|
|
|
|
useDune2 = true;
|
|
|
|
doCheck = true;
|
|
buildInputs = [ cstruct-unix ounit2 ];
|
|
|
|
propagatedBuildInputs = [ ppx_sexp_conv ppx_cstruct cstruct cstruct-sexp
|
|
sexplib mirage-crypto mirage-crypto-pk mirage-crypto-rng
|
|
x509 domain-name fmt ocaml_lwt ptime ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/mirleft/ocaml-tls";
|
|
description = "TLS in pure OCaml";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
};
|
|
}
|