mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 21:17:46 +00:00
202f19b225
This makes it possible to run the example given at https://github.com/mirage/ocaml-cohttp#client-tutorial
19 lines
472 B
Nix
19 lines
472 B
Nix
{ stdenv, ocaml, findlib, jbuilder, conduit-lwt
|
|
, logs, ppx_sexp_conv, lwt_ssl
|
|
}:
|
|
|
|
if !stdenv.lib.versionAtLeast conduit-lwt.version "1.0"
|
|
then conduit-lwt
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-conduit-lwt-unix-${version}";
|
|
inherit (conduit-lwt) version src installPhase meta;
|
|
|
|
buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ conduit-lwt logs lwt_ssl ];
|
|
|
|
buildPhase = "jbuilder build -p conduit-lwt-unix";
|
|
}
|