nixpkgs/pkgs/development/ocaml-modules/tls/default.nix
Théo Zimmermann 92d2950194 ocamlPackages.mirage-crypto: 0.10.7 -> 0.11.0
Co-authored-by: Vincent Laporte <vbgl@users.noreply.github.com>
2023-03-09 15:24:25 +01:00

55 lines
1.2 KiB
Nix

{ 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, sexplib, x509
, ipaddr, ipaddr-sexp
, alcotest, cstruct-unix, ounit2, randomconv
}:
buildDunePackage rec {
pname = "tls";
version = "0.16.0";
src = fetchurl {
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
sha256 = "sha256-uvIDZLNy6E/ce7YmzUUVaOeGRaHqPSUzuEPQDMu09tM=";
};
minimalOCamlVersion = "4.08";
duneVersion = "3";
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
ipaddr
ipaddr-sexp
];
doCheck = true;
checkInputs = [
alcotest
cstruct-unix
ounit2
randomconv
];
meta = with lib; {
homepage = "https://github.com/mirleft/ocaml-tls";
description = "TLS in pure OCaml";
license = licenses.bsd2;
maintainers = with maintainers; [ sternenseemann ];
};
}