summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocurl/default.nix
blob: ea2af8dd4c827452e94b18e1de5cf8d6c9ab8409 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, lib, pkg-config, ocaml, findlib, fetchurl, curl, ncurses, lwt }:

if lib.versionOlder ocaml.version "4.02"
then throw "ocurl is not available for OCaml ${ocaml.version}"
else

stdenv.mkDerivation rec {
  pname = "ocurl";
  version = "0.9.1";

  src = fetchurl {
    url = "http://ygrek.org.ua/p/release/ocurl/ocurl-${version}.tar.gz";
    sha256 = "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6";
  };

  buildInputs = [ pkg-config ocaml findlib ncurses ];
  propagatedBuildInputs = [ curl lwt ];
  createFindlibDestdir = true;
  meta = {
    description = "OCaml bindings to libcurl";
    license = lib.licenses.mit;
    homepage = "http://ygrek.org.ua/p/ocurl/";
    maintainers = with lib.maintainers; [ bennofs ];
    platforms = ocaml.meta.platforms or [ ];
  };
}