ocamlPackages.cohttp-async: init at 2.5.1
This commit is contained in:
parent
94790b2949
commit
48e06000c2
21
pkgs/development/ocaml-modules/cohttp/async.nix
Normal file
21
pkgs/development/ocaml-modules/cohttp/async.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ stdenv, buildDunePackage, async, cohttp, conduit-async, uri, ppx_sexp_conv
|
||||||
|
, logs, magic-mime }:
|
||||||
|
|
||||||
|
if !stdenv.lib.versionAtLeast cohttp.version "0.99" then
|
||||||
|
cohttp
|
||||||
|
else if !stdenv.lib.versionAtLeast async.version "0.13" then
|
||||||
|
throw "cohttp-async needs async-0.13 (hence OCaml >= 4.08)"
|
||||||
|
else
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "cohttp-async";
|
||||||
|
inherit (cohttp) version src;
|
||||||
|
|
||||||
|
buildInputs = [ ppx_sexp_conv ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ async cohttp conduit-async logs magic-mime uri ];
|
||||||
|
|
||||||
|
meta = cohttp.meta // {
|
||||||
|
description = "CoHTTP implementation for the Async concurrency library";
|
||||||
|
};
|
||||||
|
}
|
@ -137,6 +137,8 @@ let
|
|||||||
|
|
||||||
cohttp = callPackage ../development/ocaml-modules/cohttp { };
|
cohttp = callPackage ../development/ocaml-modules/cohttp { };
|
||||||
|
|
||||||
|
cohttp-async = callPackage ../development/ocaml-modules/cohttp/async.nix { };
|
||||||
|
|
||||||
cohttp-lwt = callPackage ../development/ocaml-modules/cohttp/lwt.nix { };
|
cohttp-lwt = callPackage ../development/ocaml-modules/cohttp/lwt.nix { };
|
||||||
|
|
||||||
cohttp-lwt-unix = callPackage ../development/ocaml-modules/cohttp/lwt-unix.nix { };
|
cohttp-lwt-unix = callPackage ../development/ocaml-modules/cohttp/lwt-unix.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user