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

34 lines
1.1 KiB
Nix
Raw Normal View History

2020-05-12 17:38:19 +01:00
{ lib, fetchurl, buildDunePackage, ppx_sexp_conv, ppx_cstruct, cstruct
, cstruct-sexp, sexplib, mirage-crypto, mirage-crypto-pk, mirage-crypto-rng
2020-05-12 17:38:19 +01:00
, x509, domain-name, fmt, cstruct-unix, ounit2, ocaml_lwt, ptime
, hacl_x25519, fiat-p256, hkdf, logs, alcotest }:
2016-11-03 00:23:53 +00:00
buildDunePackage rec {
2020-06-21 23:37:08 +01:00
minimumOCamlVersion = "4.08";
2016-11-03 00:23:53 +00:00
2020-08-09 12:49:11 +01:00
version = "0.12.4";
pname = "tls";
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";
2020-08-09 12:49:11 +01:00
sha256 = "1m6ci98xg8axk1swrjx0q33ixinyjg8vzr7vwr65k9wljfgy10s9";
2016-11-03 00:23:53 +00:00
};
useDune2 = true;
2016-11-03 00:23:53 +00:00
doCheck = true;
2020-05-12 17:38:19 +01:00
checkInputs = [ cstruct-unix ounit2 alcotest ];
propagatedBuildInputs = [ ppx_sexp_conv ppx_cstruct cstruct cstruct-sexp
sexplib mirage-crypto mirage-crypto-pk mirage-crypto-rng
2020-05-12 17:38:19 +01:00
x509 domain-name fmt ocaml_lwt ptime hacl_x25519 fiat-p256
hkdf logs ];
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 ];
};
}