2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, pkgconfig, ocaml, findlib, fetchurl, curl, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if lib.versionOlder ocaml.version "4.02"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "ocurl is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
name = "ocurl-0.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ygrek.org.ua/p/release/ocurl/${name}.tar.gz";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig ocaml findlib ncurses ];
|
|
|
|
propagatedBuildInputs = [ curl ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
|
|
description = "OCaml bindings to libcurl";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://ygrek.org.ua/p/ocurl/";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ bennofs ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
};
|
|
|
|
}
|