mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
15 lines
311 B
Nix
15 lines
311 B
Nix
{ stdenv, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv }:
|
|
|
|
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 ];
|
|
}
|