ocaml-tls: init at 0.7.1

+45
+41
pkgs/development/ocaml-modules/tls/default.nix
··· 1 + { stdenv, buildOcaml, fetchFromGitHub, findlib, ocamlbuild, ocaml_oasis 2 + , ppx_tools, ppx_sexp_conv, result, x509, nocrypto, cstruct, ounit 3 + , lwt ? null}: 4 + 5 + with stdenv.lib; 6 + 7 + let withLwt = lwt != null; in 8 + 9 + buildOcaml rec { 10 + version = "0.7.1"; 11 + name = "tls"; 12 + 13 + minimunSupportedOcamlVersion = "4.02"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "mirleft"; 17 + repo = "ocaml-tls"; 18 + rev = "${version}"; 19 + sha256 = "19q2hzxiasz9pzczgb63kikg0mc9mw98dfvch5falf2rincycj24"; 20 + }; 21 + 22 + buildInputs = [ ocamlbuild findlib ocaml_oasis ppx_sexp_conv ounit ]; 23 + propagatedBuildInputs = [ cstruct nocrypto result x509 ] ++ 24 + optional withLwt lwt; 25 + 26 + configureFlags = [ "--disable-mirage" "--enable-tests" ] ++ 27 + optional withLwt ["--enable-lwt"]; 28 + 29 + configurePhase = "./configure --prefix $out $configureFlags"; 30 + 31 + doCheck = true; 32 + checkTarget = "test"; 33 + createFindlibDestdir = true; 34 + 35 + meta = with stdenv.lib; { 36 + homepage = https://github.com/mirleft/ocaml-tls; 37 + description = "TLS in pure OCaml"; 38 + license = licenses.bsd2; 39 + maintainers = with maintainers; [ sternenseemann ]; 40 + }; 41 + }
+4
pkgs/top-level/ocaml-packages.nix
··· 366 366 367 367 textutils_p4 = callPackage ../development/ocaml-modules/textutils { }; 368 368 369 + tls = callPackage ../development/ocaml-modules/tls { 370 + lwt = ocaml_lwt; 371 + }; 372 + 369 373 type_conv_108_08_00 = callPackage ../development/ocaml-modules/type_conv/108.08.00.nix { }; 370 374 type_conv_109_60_01 = callPackage ../development/ocaml-modules/type_conv/109.60.01.nix { }; 371 375 type_conv_112_01_01 = callPackage ../development/ocaml-modules/type_conv/112.01.01.nix { };