2022-08-12 12:06:08 +00:00
|
|
|
{ alcotest
|
|
|
|
, buildDunePackage
|
|
|
|
, dune-configurator
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, ocaml
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ssl";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.5.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "savonet";
|
|
|
|
repo = "ocaml-ssl";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = version;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-Ws7QZOvZVy0QixMiBFJZEOnYzYlCWrZ1d95gOp/a5a0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [ openssl ];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2022-08-12 12:06:08 +00:00
|
|
|
preCheck = ''
|
|
|
|
mkdir -p _build/default/tests/
|
|
|
|
cp tests/digicert_certificate.pem _build/default/tests/
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://savonet.rastageeks.org/";
|
|
|
|
description = "OCaml bindings for libssl ";
|
|
|
|
license = "LGPL+link exception";
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with lib.maintainers; [ anmonteiro dandellion maggesi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|