1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/conduit/lwt.nix
2018-09-15 19:32:32 +00:00

17 lines
412 B
Nix

{ stdenv, ocaml, findlib, dune, ppx_sexp_conv, conduit, lwt3 }:
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 lwt3 ];
buildPhase = "dune build -p conduit-lwt";
}