nixpkgs/pkgs/development/ocaml-modules/tls/default.nix
Vincent Laporte d1f1457e3f ocamlPackages.tls: 0.16.0 → 0.17.1
jackline: 2023-02-24 → 2023-03-09
2023-09-08 12:04:31 +02:00

49 lines
1019 B
Nix

{ lib, fetchurl, buildDunePackage
, cstruct, domain-name, fmt, logs, hkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, lwt, ptime, x509
, ipaddr
, alcotest, cstruct-unix, ounit2, randomconv
}:
buildDunePackage rec {
pname = "tls";
version = "0.17.1";
src = fetchurl {
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
hash = "sha256-gBDStt4UjaIoaSgYHSM71yD6YPoVez1CULyg3QCMXT8=";
};
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
cstruct
domain-name
fmt
logs
hkdf
mirage-crypto
mirage-crypto-ec
mirage-crypto-pk
mirage-crypto-rng
lwt
ptime
x509
ipaddr
];
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 ];
};
}