From 40c61e528f0c7f503e73666ee60ab064b8a0944b Mon Sep 17 00:00:00 2001 From: Antonio Nuno Monteiro Date: Fri, 1 Oct 2021 18:09:56 -0700 Subject: [PATCH] ocamlPackages.logs: make jsoo support optional --- pkgs/development/ocaml-modules/logs/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/logs/default.nix b/pkgs/development/ocaml-modules/logs/default.nix index e786b02d93ec..157e7c52fee1 100644 --- a/pkgs/development/ocaml-modules/logs/default.nix +++ b/pkgs/development/ocaml-modules/logs/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild , topkg, result, lwt, cmdliner, fmt , js_of_ocaml +, jsooSupport ? true }: let pname = "logs"; @@ -21,10 +22,11 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ ocaml findlib ocamlbuild ]; - buildInputs = [ findlib topkg fmt cmdliner js_of_ocaml lwt ]; + buildInputs = [ findlib topkg fmt cmdliner lwt ] + ++ lib.optional jsooSupport js_of_ocaml; propagatedBuildInputs = [ result ]; - buildPhase = "${topkg.run} build --with-js_of_ocaml true"; + buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}"; inherit (topkg) installPhase;