2021-01-16 12:48:12 +00:00
|
|
|
{ stdenv, lib, pkgconfig, ocaml, findlib, fetchurl, curl, ncurses, lwt }:
|
2015-01-25 21:08:33 +00:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionOlder ocaml.version "4.02"
|
2019-08-25 09:30:00 +01:00
|
|
|
then throw "ocurl is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2015-01-25 21:08:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-11 07:42:26 +01:00
|
|
|
name = "ocurl-0.9.1";
|
2015-01-25 21:08:33 +00:00
|
|
|
src = fetchurl {
|
2017-12-03 10:27:30 +00:00
|
|
|
url = "http://ygrek.org.ua/p/release/ocurl/${name}.tar.gz";
|
2020-05-11 07:42:26 +01:00
|
|
|
sha256 = "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6";
|
2015-01-25 21:08:33 +00:00
|
|
|
};
|
|
|
|
|
2017-12-03 10:27:30 +00:00
|
|
|
buildInputs = [ pkgconfig ocaml findlib ncurses ];
|
2021-01-16 12:48:12 +00:00
|
|
|
propagatedBuildInputs = [ curl lwt ];
|
2015-01-25 21:08:33 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
|
|
description = "OCaml bindings to libcurl";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.mit;
|
2017-12-03 10:27:30 +00:00
|
|
|
homepage = "http://ygrek.org.ua/p/ocurl/";
|
2021-01-11 12:49:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ bennofs ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-25 21:08:33 +00:00
|
|
|
};
|
|
|
|
}
|