nixpkgs/pkgs/development/ocaml-modules/cohttp/lwt.nix

15 lines
318 B
Nix
Raw Normal View History

2019-04-06 13:54:37 +00:00
{ stdenv, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv, logs }:
if !stdenv.lib.versionAtLeast cohttp.version "0.99"
then cohttp
else
2019-08-13 21:52:01 +00:00
buildDunePackage {
pname = "cohttp-lwt";
inherit (cohttp) version src meta;
buildInputs = [ uri ppx_sexp_conv ];
2019-04-06 13:54:37 +00:00
propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
}