tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ocaml-tls: init at 0.7.1
sternenseemann
9 years ago
d98a770e
d1b43584
+45
2 changed files
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
tls
default.nix
top-level
ocaml-packages.nix
+41
pkgs/development/ocaml-modules/tls/default.nix
···
1
1
+
{ stdenv, buildOcaml, fetchFromGitHub, findlib, ocamlbuild, ocaml_oasis
2
2
+
, ppx_tools, ppx_sexp_conv, result, x509, nocrypto, cstruct, ounit
3
3
+
, lwt ? null}:
4
4
+
5
5
+
with stdenv.lib;
6
6
+
7
7
+
let withLwt = lwt != null; in
8
8
+
9
9
+
buildOcaml rec {
10
10
+
version = "0.7.1";
11
11
+
name = "tls";
12
12
+
13
13
+
minimunSupportedOcamlVersion = "4.02";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "mirleft";
17
17
+
repo = "ocaml-tls";
18
18
+
rev = "${version}";
19
19
+
sha256 = "19q2hzxiasz9pzczgb63kikg0mc9mw98dfvch5falf2rincycj24";
20
20
+
};
21
21
+
22
22
+
buildInputs = [ ocamlbuild findlib ocaml_oasis ppx_sexp_conv ounit ];
23
23
+
propagatedBuildInputs = [ cstruct nocrypto result x509 ] ++
24
24
+
optional withLwt lwt;
25
25
+
26
26
+
configureFlags = [ "--disable-mirage" "--enable-tests" ] ++
27
27
+
optional withLwt ["--enable-lwt"];
28
28
+
29
29
+
configurePhase = "./configure --prefix $out $configureFlags";
30
30
+
31
31
+
doCheck = true;
32
32
+
checkTarget = "test";
33
33
+
createFindlibDestdir = true;
34
34
+
35
35
+
meta = with stdenv.lib; {
36
36
+
homepage = https://github.com/mirleft/ocaml-tls;
37
37
+
description = "TLS in pure OCaml";
38
38
+
license = licenses.bsd2;
39
39
+
maintainers = with maintainers; [ sternenseemann ];
40
40
+
};
41
41
+
}
+4
pkgs/top-level/ocaml-packages.nix
···
366
366
367
367
textutils_p4 = callPackage ../development/ocaml-modules/textutils { };
368
368
369
369
+
tls = callPackage ../development/ocaml-modules/tls {
370
370
+
lwt = ocaml_lwt;
371
371
+
};
372
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 { };