lol

ocamlPackages.logs: make jsoo support optional

authored by

Antonio Nuno Monteiro and committed by
sterni
40c61e52 aa982bc0

+4 -2
+4 -2
pkgs/development/ocaml-modules/logs/default.nix
··· 1 1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild 2 2 , topkg, result, lwt, cmdliner, fmt 3 3 , js_of_ocaml 4 + , jsooSupport ? true 4 5 }: 5 6 let 6 7 pname = "logs"; ··· 21 22 }; 22 23 23 24 nativeBuildInputs = [ ocaml findlib ocamlbuild ]; 24 - buildInputs = [ findlib topkg fmt cmdliner js_of_ocaml lwt ]; 25 + buildInputs = [ findlib topkg fmt cmdliner lwt ] 26 + ++ lib.optional jsooSupport js_of_ocaml; 25 27 propagatedBuildInputs = [ result ]; 26 28 27 - buildPhase = "${topkg.run} build --with-js_of_ocaml true"; 29 + buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}"; 28 30 29 31 inherit (topkg) installPhase; 30 32