diff --git a/pkgs/development/ocaml-modules/eio-ssl/default.nix b/pkgs/development/ocaml-modules/eio-ssl/default.nix new file mode 100644 index 000000000000..087a667d4e2d --- /dev/null +++ b/pkgs/development/ocaml-modules/eio-ssl/default.nix @@ -0,0 +1,24 @@ +{ lib +, buildDunePackage +, fetchurl +, eio +, ssl +}: + +buildDunePackage rec { + pname = "eio-ssl"; + version = "0.3.0"; + + src = fetchurl { + url = "https://github.com/anmonteiro/eio-ssl/releases/download/${version}/eio-ssl-${version}.tbz"; + hash = "sha256-m4CiUQtXVSMfLthbDsAftpiOsr24I5IGiU1vv7Rz8go="; + }; + + propagatedBuildInputs = [ eio ssl ]; + + meta = { + homepage = "https://github.com/anmonteiro/eio-ssl"; + description = "OpenSSL binding to EIO"; + license = lib.licenses.lgpl21; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index f40b306ee364..61429ca4bfaf 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -444,6 +444,8 @@ let eio_main = callPackage ../development/ocaml-modules/eio/main.nix { }; eio_posix = callPackage ../development/ocaml-modules/eio/posix.nix { }; + eio-ssl = callPackage ../development/ocaml-modules/eio-ssl { }; + either = callPackage ../development/ocaml-modules/either { }; elina = callPackage ../development/ocaml-modules/elina { };