diff options
author | sternenseemann <git@lukasepple.de> | 2016-11-03 01:23:53 +0100 |
---|---|---|
committer | sternenseemann <git@lukasepple.de> | 2016-11-03 14:34:31 +0100 |
commit | d675e0d832793394d3c7d85d1e54b8956fb8b816 (patch) | |
tree | 0e492285d5ea11110b2de8a85c577ed5e643e71d /pkgs/development | |
parent | 750342082b875d0b247b537428400532ca287373 (diff) | |
download | nixlib-d675e0d832793394d3c7d85d1e54b8956fb8b816.tar nixlib-d675e0d832793394d3c7d85d1e54b8956fb8b816.tar.gz nixlib-d675e0d832793394d3c7d85d1e54b8956fb8b816.tar.bz2 nixlib-d675e0d832793394d3c7d85d1e54b8956fb8b816.tar.lz nixlib-d675e0d832793394d3c7d85d1e54b8956fb8b816.tar.xz nixlib-d675e0d832793394d3c7d85d1e54b8956fb8b816.tar.zst nixlib-d675e0d832793394d3c7d85d1e54b8956fb8b816.zip |
ocaml-tls: init at 0.7.1
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ocaml-modules/tls/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/tls/default.nix b/pkgs/development/ocaml-modules/tls/default.nix new file mode 100644 index 000000000000..52a9aec90b2c --- /dev/null +++ b/pkgs/development/ocaml-modules/tls/default.nix @@ -0,0 +1,41 @@ +{ stdenv, buildOcaml, fetchFromGitHub, findlib, ocamlbuild, ocaml_oasis +, ppx_tools, ppx_sexp_conv, result, x509, nocrypto, cstruct +, withLwt ? true +, lwt ? null}: + +with stdenv.lib; +assert withLwt -> lwt != null; + +buildOcaml rec { + version = "0.7.1"; + name = "tls"; + + minimunSupportedOcamlVersion = "4.02"; + + src = fetchFromGitHub { + owner = "mirleft"; + repo = "ocaml-tls"; + rev = "${version}"; + sha256 = "19q2hzxiasz9pzczgb63kikg0mc9mw98dfvch5falf2rincycj24"; + }; + + buildInputs = [ ocamlbuild findlib ocaml_oasis ppx_sexp_conv ]; + propagatedBuildInputs = [ cstruct nocrypto result x509 ] ++ + optional withLwt lwt; + + configureFlags = [ "--disable-mirage" "--enable-tests" ] ++ + optional withLwt ["--enable-lwt"]; + + configurePhase = "./configure --prefix $out $configureFlags"; + + doCheck = true; + checkTarget = "test"; + createFindlibDestdir = true; + + meta = with stdenv.lib; { + homepage = https://github.com/mirleft/ocaml-tls; + description = "TLS in pure OCaml."; + license = licenses.bsd2; + maintainers = with maintainers; [ sternenseemann ]; + }; +} |