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

53 lines
1.2 KiB
Nix
Raw Normal View History

2021-06-07 17:47:03 +01: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, rresult, sexplib, x509
2021-06-07 19:04:47 +01:00
, alcotest, cstruct-unix, ounit2, randomconv
2021-06-07 17:47:03 +01:00
}:
2016-11-03 00:23:53 +00:00
buildDunePackage rec {
pname = "tls";
version = "0.14.1";
2016-11-03 00:23:53 +00:00
src = fetchurl {
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz";
sha256 = "58cf2d517d6eac5b1ccc5eeb656da690aef2125a19c1eca3fbececd858046216";
2016-11-03 00:23:53 +00:00
};
2021-06-07 17:47:03 +01:00
minimumOCamlVersion = "4.08";
useDune2 = true;
2016-11-03 00:23:53 +00:00
2021-06-07 17:47:03 +01: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
rresult
sexplib
x509
];
2021-06-07 17:47:03 +01:00
doCheck = true;
checkInputs = [
alcotest
cstruct-unix
ounit2
2021-06-07 19:04:47 +01:00
randomconv
2021-06-07 17:47:03 +01:00
];
2016-11-03 00:23:53 +00:00
2020-05-12 17:38:19 +01: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 ];
};
}