about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
blob: 845df2a3f54264c4e3c9b1c7b1f994866de08baf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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 ];
}