From 84785c63af4aa454176bbb9990b4e2708ce5e642 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 22 Sep 2021 21:06:34 +0200 Subject: ocamlPackages.logs: also build the optional `logs.browser` library --- pkgs/development/ocaml-modules/logs/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pkgs/development/ocaml-modules') diff --git a/pkgs/development/ocaml-modules/logs/default.nix b/pkgs/development/ocaml-modules/logs/default.nix index fedfb1c7637f7..e786b02d93ec0 100644 --- a/pkgs/development/ocaml-modules/logs/default.nix +++ b/pkgs/development/ocaml-modules/logs/default.nix @@ -1,5 +1,7 @@ { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild -, topkg, result, lwt, cmdliner, fmt }: +, topkg, result, lwt, cmdliner, fmt +, js_of_ocaml +}: let pname = "logs"; webpage = "https://erratique.ch/software/${pname}"; @@ -19,10 +21,10 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ ocaml findlib ocamlbuild ]; - buildInputs = [ findlib topkg fmt cmdliner lwt ]; + buildInputs = [ findlib topkg fmt cmdliner js_of_ocaml lwt ]; propagatedBuildInputs = [ result ]; - buildPhase = "${topkg.run} build --with-js_of_ocaml false"; + buildPhase = "${topkg.run} build --with-js_of_ocaml true"; inherit (topkg) installPhase; -- cgit 1.4.1