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