about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/cohttp/lwt.nix
blob: 93ba084703e542cf3b9096d0034f62d3f80c84b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ stdenv, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv, logs }:

if !stdenv.lib.versionAtLeast cohttp.version "0.99"
then cohttp
else

buildDunePackage rec {
	pname = "cohttp-lwt";
	inherit (cohttp) version src meta;

	buildInputs = [ uri ppx_sexp_conv ];

	propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
}