1 { stdenv, lib, pkg-config, ocaml, findlib, fetchurl, curl, ncurses, lwt }:
3 if lib.versionOlder ocaml.version "4.02"
4 then throw "ocurl is not available for OCaml ${ocaml.version}"
7 stdenv.mkDerivation rec {
10 url = "http://ygrek.org.ua/p/release/ocurl/${name}.tar.gz";
11 sha256 = "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6";
14 buildInputs = [ pkg-config ocaml findlib ncurses ];
15 propagatedBuildInputs = [ curl lwt ];
16 createFindlibDestdir = true;
18 description = "OCaml bindings to libcurl";
19 license = lib.licenses.mit;
20 homepage = "http://ygrek.org.ua/p/ocurl/";
21 maintainers = with lib.maintainers; [ bennofs ];
22 platforms = ocaml.meta.platforms or [];