mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
18 lines
390 B
Nix
18 lines
390 B
Nix
{ stdenv, buildDunePackage, cohttp-lwt
|
|
, conduit-lwt-unix, ppx_sexp_conv
|
|
, cmdliner, fmt, magic-mime
|
|
}:
|
|
|
|
if !stdenv.lib.versionAtLeast cohttp-lwt.version "0.99"
|
|
then cohttp-lwt
|
|
else
|
|
|
|
buildDunePackage {
|
|
pname = "cohttp-lwt-unix";
|
|
inherit (cohttp-lwt) version src meta;
|
|
|
|
buildInputs = [ cmdliner ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
|
|
}
|