fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / development / ocaml-modules / ssl / default.nix
blobfea4be04f8a3c4a47fc3ac5f6c1d7ec2e7db12a2
2   alcotest,
3   buildDunePackage,
4   dune-configurator,
5   fetchFromGitHub,
6   lib,
7   ocaml,
8   openssl,
9   pkg-config,
12 buildDunePackage rec {
13   pname = "ssl";
14   version = "0.7.0";
16   duneVersion = "3";
18   src = fetchFromGitHub {
19     owner = "savonet";
20     repo = "ocaml-ssl";
21     rev = "v${version}";
22     hash = "sha256-gi80iwlKaI4TdAVnCyPG03qRWFa19DHdTrA0KMFBAc4=";
23   };
25   nativeBuildInputs = [ pkg-config ];
26   buildInputs = [ dune-configurator ];
27   propagatedBuildInputs = [ openssl ];
29   __darwinAllowLocalNetworking = true;
30   doCheck = lib.versionAtLeast ocaml.version "4.08";
31   checkInputs = [ alcotest ];
32   preCheck = ''
33     mkdir -p _build/default/tests/
34     cp tests/digicert_certificate.pem _build/default/tests/
35   '';
37   meta = {
38     homepage = "http://savonet.rastageeks.org/";
39     description = "OCaml bindings for libssl";
40     license = "LGPL+link exception";
41     maintainers = with lib.maintainers; [
42       anmonteiro
43       dandellion
44       maggesi
45     ];
46   };