mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
17 lines
422 B
Nix
17 lines
422 B
Nix
{ stdenv, ocaml, findlib, dune, ppx_sexp_conv, conduit, ocaml_lwt }:
|
|
|
|
if !stdenv.lib.versionAtLeast conduit.version "1.0"
|
|
then conduit
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-conduit-lwt-${version}";
|
|
inherit (conduit) version src installPhase meta;
|
|
|
|
buildInputs = [ ocaml findlib dune ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ conduit ocaml_lwt ];
|
|
|
|
buildPhase = "dune build -p conduit-lwt";
|
|
}
|