diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/logs/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/logs/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/logs/default.nix b/nixpkgs/pkgs/development/ocaml-modules/logs/default.nix index fedfb1c7637f..157e7c52fee1 100644 --- a/nixpkgs/pkgs/development/ocaml-modules/logs/default.nix +++ b/nixpkgs/pkgs/development/ocaml-modules/logs/default.nix @@ -1,5 +1,8 @@ { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild -, topkg, result, lwt, cmdliner, fmt }: +, topkg, result, lwt, cmdliner, fmt +, js_of_ocaml +, jsooSupport ? true +}: let pname = "logs"; webpage = "https://erratique.ch/software/${pname}"; @@ -19,10 +22,11 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ ocaml findlib ocamlbuild ]; - buildInputs = [ findlib topkg fmt cmdliner lwt ]; + buildInputs = [ findlib topkg fmt cmdliner lwt ] + ++ lib.optional jsooSupport js_of_ocaml; propagatedBuildInputs = [ result ]; - buildPhase = "${topkg.run} build --with-js_of_ocaml false"; + buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}"; inherit (topkg) installPhase; |