02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
39 lines
883 B
Nix
39 lines
883 B
Nix
{ alcotest
|
|
, buildDunePackage
|
|
, dune-configurator
|
|
, fetchFromGitHub
|
|
, lib
|
|
, ocaml
|
|
, openssl
|
|
, pkg-config
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "ssl";
|
|
version = "0.5.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "savonet";
|
|
repo = "ocaml-ssl";
|
|
rev = version;
|
|
sha256 = "sha256-uFr+XSKDGMHaM2o5DODYmt7+LkhnDzzlVX//CtAXBm4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ dune-configurator ];
|
|
propagatedBuildInputs = [ openssl ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.06";
|
|
checkInputs = [ alcotest ];
|
|
preCheck = ''
|
|
mkdir -p _build/default/tests/
|
|
cp tests/digicert_certificate.pem _build/default/tests/
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://savonet.rastageeks.org/";
|
|
description = "OCaml bindings for libssl ";
|
|
license = "LGPL+link exception";
|
|
maintainers = with lib.maintainers; [ anmonteiro dandellion maggesi ];
|
|
};
|
|
}
|