mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
724504e0da
ocamlPackages.conduit: 0.15.4 -> 1.0.0 ocamlPackages.cohttp-lwt: init at 0.99.0 ocamlPackages.cohttp-lwt-unix: init at 0.99.0 ocamlPackages.conduit-lwt: init at 1.0.0 ocamlPackages.conduit-lwt-unix: init at 1.0.0 ocamlPackages.git: 1.11.1 -> 1.11.2
20 lines
525 B
Nix
20 lines
525 B
Nix
{ stdenv, ocaml, findlib, jbuilder, 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
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-cohttp-lwt-unix-${version}";
|
|
inherit (cohttp-lwt) version src installPhase meta;
|
|
|
|
buildInputs = [ ocaml findlib jbuilder cmdliner ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
|
|
|
|
buildPhase = "jbuilder build -p cohttp-lwt-unix";
|
|
}
|