ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
19 lines
404 B
Nix
19 lines
404 B
Nix
{ lib, buildDunePackage, cohttp-lwt
|
|
, conduit-lwt-unix, ppx_sexp_conv
|
|
, cmdliner, fmt, magic-mime
|
|
}:
|
|
|
|
if !lib.versionAtLeast cohttp-lwt.version "0.99"
|
|
then cohttp-lwt
|
|
else
|
|
|
|
buildDunePackage {
|
|
pname = "cohttp-lwt-unix";
|
|
inherit (cohttp-lwt) version src meta;
|
|
|
|
useDune2 = true;
|
|
|
|
buildInputs = [ cmdliner ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
|
|
}
|