1 { lib, stdenv, fetchurl, pkg-config, ocaml, findlib, curl, lwt, lwt_ppx }:
2 if lib.versionOlder ocaml.version "4.04"
3 then throw "ocurl is not available for OCaml ${ocaml.version}"
5 stdenv.mkDerivation rec {
10 url = "https://github.com/ygrek/ocurl/releases/download/${version}/ocurl-${version}.tar.gz";
11 sha256 = "sha256-4DWXGMh02s1VwLWW5d7h0jtMOUubWmBPGm1hghfWd2M=";
14 nativeBuildInputs = [ pkg-config ocaml findlib ];
15 propagatedBuildInputs = [ curl lwt lwt_ppx ];
19 createFindlibDestdir = true;
21 description = "OCaml bindings to libcurl";
22 license = lib.licenses.mit;
23 homepage = "http://ygrek.org.ua/p/ocurl/";
24 maintainers = with lib.maintainers; [ dandellion bennofs ];
25 platforms = ocaml.meta.platforms or [ ];