mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
222002fe19
* ocamlPackages.lwt_ssl: 1.1.3 → 1.2.0 * ocamlPackages.ssl: use Dune 3
42 lines
905 B
Nix
42 lines
905 B
Nix
{ alcotest
|
|
, buildDunePackage
|
|
, dune-configurator
|
|
, fetchFromGitHub
|
|
, lib
|
|
, ocaml
|
|
, openssl
|
|
, pkg-config
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "ssl";
|
|
version = "0.5.13";
|
|
|
|
duneVersion = "3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "savonet";
|
|
repo = "ocaml-ssl";
|
|
rev = version;
|
|
sha256 = "sha256-Ws7QZOvZVy0QixMiBFJZEOnYzYlCWrZ1d95gOp/a5a0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ dune-configurator ];
|
|
propagatedBuildInputs = [ openssl ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
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 ];
|
|
};
|
|
}
|