2017-12-03 10:27:30 +00:00
|
|
|
{ stdenv, pkgconfig, ocaml, findlib, fetchurl, curl, ncurses }:
|
2015-01-25 21:08:33 +00:00
|
|
|
|
2019-08-25 09:30:00 +01:00
|
|
|
if stdenv.lib.versionOlder ocaml.version "4.02"
|
|
|
|
then throw "ocurl is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2015-01-25 21:08:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-12-08 21:50:22 +00:00
|
|
|
name = "ocurl-0.9.0";
|
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";
|
2019-12-08 21:50:22 +00:00
|
|
|
sha256 = "0v5qzfazaynjv1xy3ds2z5iz0np5mz8g831l91l1mrqz6fr1ah0f";
|
2015-01-25 21:08:33 +00:00
|
|
|
};
|
|
|
|
|
2017-12-03 10:27:30 +00:00
|
|
|
buildInputs = [ pkgconfig ocaml findlib ncurses ];
|
2017-04-28 17:10:11 +01:00
|
|
|
propagatedBuildInputs = [ curl ];
|
2015-01-25 21:08:33 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
|
|
description = "OCaml bindings to libcurl";
|
2017-12-03 10:27:30 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
homepage = "http://ygrek.org.ua/p/ocurl/";
|
2015-01-25 21:08:33 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ bennofs ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-25 21:08:33 +00:00
|
|
|
};
|
|
|
|
}
|