depot/third_party/nixpkgs/pkgs/development/ocaml-modules/tls/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

44 lines
926 B
Nix

{ lib, fetchurl, buildDunePackage
, domain-name, fmt, logs, hkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, ptime, x509
, ipaddr
, alcotest, ounit2
}:
buildDunePackage rec {
pname = "tls";
version = "1.0.1";
src = fetchurl {
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
hash = "sha256-2uS1/8gD6ILphIBCWP+KrKe4N9hVbeaEABldpccKjYM=";
};
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
domain-name
fmt
logs
hkdf
mirage-crypto
mirage-crypto-ec
mirage-crypto-pk
mirage-crypto-rng
ptime
x509
ipaddr
];
doCheck = true;
checkInputs = [
alcotest
ounit2
];
meta = with lib; {
homepage = "https://github.com/mirleft/ocaml-tls";
description = "TLS in pure OCaml";
license = licenses.bsd2;
maintainers = with maintainers; [ sternenseemann ];
};
}