lol
1{ alcotest
2, buildDunePackage
3, dune-configurator
4, fetchFromGitHub
5, lib
6, ocaml
7, openssl
8, pkg-config
9}:
10
11buildDunePackage rec {
12 pname = "ssl";
13 version = "0.5.12";
14
15 src = fetchFromGitHub {
16 owner = "savonet";
17 repo = "ocaml-ssl";
18 rev = version;
19 sha256 = "sha256-cQUJ7t7C9R74lDy1/lt+up4E5CogiPbeZpaDveDzJ7c=";
20 };
21
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [ dune-configurator ];
24 propagatedBuildInputs = [ openssl ];
25
26 doCheck = lib.versionAtLeast ocaml.version "4.08";
27 checkInputs = [ alcotest ];
28 preCheck = ''
29 mkdir -p _build/default/tests/
30 cp tests/digicert_certificate.pem _build/default/tests/
31 '';
32
33 meta = {
34 homepage = "http://savonet.rastageeks.org/";
35 description = "OCaml bindings for libssl ";
36 license = "LGPL+link exception";
37 maintainers = with lib.maintainers; [ anmonteiro dandellion maggesi ];
38 };
39}