Files
nixpkgs/pkgs/development/ocaml-modules/tls/default.nix
2026-08-10 09:40:13 +02:00

60 lines
993 B
Nix

{
lib,
fetchurl,
buildDunePackage,
digestif,
domain-name,
fmt,
logs,
kdf,
mirage-crypto,
mirage-crypto-ec,
mirage-crypto-pk,
mirage-crypto-rng,
ohex,
ptime,
x509,
ipaddr,
alcotest,
ounit2,
}:
buildDunePackage (finalAttrs: {
pname = "tls";
version = "2.1.2";
src = fetchurl {
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${finalAttrs.version}/tls-${finalAttrs.version}.tbz";
hash = "sha256-1RlAWHvOlHXJd8WWkEyBedzXhNnvbdmv4+Y0zKlAyfM=";
};
propagatedBuildInputs = [
digestif
domain-name
fmt
ipaddr
kdf
logs
mirage-crypto
mirage-crypto-ec
mirage-crypto-pk
mirage-crypto-rng
ohex
ptime
x509
];
doCheck = true;
checkInputs = [
alcotest
ounit2
];
meta = {
homepage = "https://github.com/mirleft/ocaml-tls";
description = "TLS in pure OCaml";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ sternenseemann ];
};
})