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

29 lines
815 B
Nix
Raw Normal View History

2018-09-05 18:11:47 +02:00
{ stdenv, fetchzip, ocaml, findlib, dune, ssl, lwt }:
2018-02-02 07:39:50 +01:00
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "lwt_ssl is not available for OCaml ${ocaml.version}"
else
2018-02-02 07:39:50 +01:00
stdenv.mkDerivation rec {
version = "1.1.2";
name = "ocaml${ocaml.version}-lwt_ssl-${version}";
src = fetchzip {
url = "https://github.com/aantron/lwt_ssl/archive/${version}.tar.gz";
sha256 = "1q0an3djqjxv83v3iswi7m81braqx93kcrcwrxwmf6jzhdm4pn15";
};
2018-09-05 18:11:47 +02:00
buildInputs = [ ocaml findlib dune ];
2018-02-02 07:39:50 +01:00
propagatedBuildInputs = [ ssl lwt ];
2018-09-05 18:11:47 +02:00
inherit (dune) installPhase;
2018-02-02 07:39:50 +01:00
meta = {
homepage = "https://github.com/aantron/lwt_ssl";
description = "OpenSSL binding with concurrent I/O";
license = stdenv.lib.licenses.lgpl21;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}