depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ocurl/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
765 B
Nix

{ stdenv, pkgconfig, ocaml, findlib, fetchurl, curl, ncurses }:
if stdenv.lib.versionOlder ocaml.version "4.02"
then throw "ocurl is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocurl-0.9.0";
src = fetchurl {
url = "http://ygrek.org.ua/p/release/ocurl/${name}.tar.gz";
sha256 = "0v5qzfazaynjv1xy3ds2z5iz0np5mz8g831l91l1mrqz6fr1ah0f";
};
buildInputs = [ pkgconfig ocaml findlib ncurses ];
propagatedBuildInputs = [ curl ];
createFindlibDestdir = true;
meta = {
description = "OCaml bindings to libcurl";
license = stdenv.lib.licenses.mit;
homepage = "http://ygrek.org.ua/p/ocurl/";
maintainers = with stdenv.lib.maintainers; [ bennofs ];
platforms = ocaml.meta.platforms or [];
};
}