nixpkgs/pkgs/development/ocaml-modules/ssl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
883 B
Nix
Raw Normal View History

2022-07-25 01:31:10 +00:00
{ alcotest
, buildDunePackage
, dune-configurator
, fetchFromGitHub
, lib
, ocaml
, openssl
, pkg-config
}:
buildDunePackage rec {
pname = "ssl";
2022-09-01 22:38:20 +00:00
version = "0.5.12";
src = fetchFromGitHub {
owner = "savonet";
repo = "ocaml-ssl";
2022-07-25 01:31:10 +00:00
rev = version;
2022-09-01 22:38:20 +00:00
sha256 = "sha256-cQUJ7t7C9R74lDy1/lt+up4E5CogiPbeZpaDveDzJ7c=";
};
nativeBuildInputs = [ pkg-config ];
2021-02-03 19:45:18 +00:00
buildInputs = [ dune-configurator ];
2022-07-25 01:31:10 +00:00
propagatedBuildInputs = [ openssl ];
2022-08-23 06:04:50 +00:00
doCheck = lib.versionAtLeast ocaml.version "4.08";
2022-07-25 01:31:10 +00:00
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";
2022-07-25 01:31:10 +00:00
maintainers = with lib.maintainers; [ anmonteiro dandellion maggesi ];
};
}