diff --git a/pkgs/development/ocaml-modules/ssl/default.nix b/pkgs/development/ocaml-modules/ssl/default.nix index 04f181d7598d..6791c7d1272e 100644 --- a/pkgs/development/ocaml-modules/ssl/default.nix +++ b/pkgs/development/ocaml-modules/ssl/default.nix @@ -1,30 +1,39 @@ -{ lib, buildDunePackage, fetchFromGitHub, pkg-config, openssl -, dune-configurator }: +{ alcotest +, buildDunePackage +, dune-configurator +, fetchFromGitHub +, lib +, ocaml +, openssl +, pkg-config +}: buildDunePackage rec { pname = "ssl"; - version = "0.5.10"; + version = "0.5.11"; src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-ssl"; - rev = "v${version}"; - sha256 = "1rszqiqayh67xlwd5411k8vib47x9kapdr037z1majd2c14z3kcb"; + rev = version; + sha256 = "sha256-uFr+XSKDGMHaM2o5DODYmt7+LkhnDzzlVX//CtAXBm4="; }; - useDune2 = true; nativeBuildInputs = [ pkg-config ]; buildInputs = [ dune-configurator ]; - propagatedBuildInputs = [openssl]; + 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 = [ - lib.maintainers.maggesi - lib.maintainers.anmonteiro - lib.maintainers.dandellion - ]; + maintainers = with lib.maintainers; [ anmonteiro dandellion maggesi ]; }; }