mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00: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
17 lines
427 B
Nix
17 lines
427 B
Nix
{ stdenv, ocaml, findlib, jbuilder, cohttp, lwt3, uri, ppx_sexp_conv }:
|
|
|
|
if !stdenv.lib.versionAtLeast cohttp.version "0.99"
|
|
then cohttp
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-cohttp-lwt-${version}";
|
|
inherit (cohttp) version src installPhase meta;
|
|
|
|
buildInputs = [ ocaml findlib jbuilder uri ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ cohttp lwt3 ];
|
|
|
|
buildPhase = "jbuilder build -p cohttp-lwt";
|
|
}
|