1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/development/ocaml-modules/cohttp/lwt.nix
2019-08-28 11:07:32 +00:00

15 lines
318 B
Nix

{ stdenv, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv, logs }:
if !stdenv.lib.versionAtLeast cohttp.version "0.99"
then cohttp
else
buildDunePackage {
pname = "cohttp-lwt";
inherit (cohttp) version src meta;
buildInputs = [ uri ppx_sexp_conv ];
propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
}