Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / ocaml-modules / ocurl / default.nix
blob83668b30cecde9504328b1ecf96f092b7e54d713
1 { stdenv, lib, pkg-config, ocaml, findlib, fetchurl, curl, ncurses, lwt }:
3 if lib.versionOlder ocaml.version "4.02"
4 then throw "ocurl is not available for OCaml ${ocaml.version}"
5 else
7 stdenv.mkDerivation rec {
8   name = "ocurl-0.9.1";
9   src = fetchurl {
10     url = "http://ygrek.org.ua/p/release/ocurl/${name}.tar.gz";
11     sha256 = "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6";
12   };
14   buildInputs = [ pkg-config ocaml findlib ncurses ];
15   propagatedBuildInputs = [ curl lwt ];
16   createFindlibDestdir = true;
17   meta = {
18     description = "OCaml bindings to libcurl";
19     license = lib.licenses.mit;
20     homepage = "http://ygrek.org.ua/p/ocurl/";
21     maintainers = with lib.maintainers; [ bennofs ];
22     platforms = ocaml.meta.platforms or [];
23   };