nixpkgs/pkgs/development/ocaml-modules/tls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.2 KiB
Nix
Raw Normal View History

2021-06-07 16:47:03 +00:00
{ 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
2021-06-07 18:04:47 +00:00
, alcotest, cstruct-unix, ounit2, randomconv
2021-06-07 16:47:03 +00:00
}:
2016-11-03 00:23:53 +00:00
buildDunePackage rec {
pname = "tls";
2023-01-13 13:40:29 +00:00
version = "0.15.4";
2016-11-03 00:23:53 +00:00
src = fetchurl {
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
2023-01-13 13:40:29 +00:00
sha256 = "sha256-X40dVrBvYGnv0dCj3gxFy0iNPRPrfxMshOx7o/DRw4I=";
2016-11-03 00:23:53 +00:00
};
2023-01-13 13:40:29 +00:00
minimalOCamlVersion = "4.08";
duneVersion = "3";
2016-11-03 00:23:53 +00:00
2021-06-07 16:47:03 +00:00
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
2021-06-07 16:47:03 +00:00
];
2021-06-07 16:47:03 +00:00
doCheck = true;
nativeCheckInputs = [
2021-06-07 16:47:03 +00:00
alcotest
cstruct-unix
ounit2
2021-06-07 18:04:47 +00:00
randomconv
2021-06-07 16:47:03 +00:00
];
2016-11-03 00:23:53 +00:00
2020-05-12 16:38:19 +00:00
meta = with lib; {
homepage = "https://github.com/mirleft/ocaml-tls";
2016-11-03 00:23:53 +00:00
description = "TLS in pure OCaml";
license = licenses.bsd2;
maintainers = with maintainers; [ sternenseemann ];
};
}