mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +00:00
44 lines
907 B
Nix
44 lines
907 B
Nix
{ lib, fetchurl, buildDunePackage
|
|
, domain-name, fmt, logs, kdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, x509
|
|
, ipaddr
|
|
, alcotest, ounit2
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "tls";
|
|
version = "1.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
|
|
hash = "sha256-yFt8Gh4ipseWEHsnJVld3iYElMDvBrYdn1O+IuHcQug=";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
propagatedBuildInputs = [
|
|
domain-name
|
|
fmt
|
|
logs
|
|
kdf
|
|
mirage-crypto
|
|
mirage-crypto-ec
|
|
mirage-crypto-pk
|
|
mirage-crypto-rng
|
|
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 ];
|
|
};
|
|
}
|