summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/logs
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2021-09-22 21:06:34 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2021-09-29 09:37:11 +0200
commit84785c63af4aa454176bbb9990b4e2708ce5e642 (patch)
tree01a5297f83b699d66649d29c327fddcb0e82fa4b /pkgs/development/ocaml-modules/logs
parent3f457de545d83c35f77e19b6ddca84cbeee89428 (diff)
downloadnixpkgs-84785c63af4aa454176bbb9990b4e2708ce5e642.tar
nixpkgs-84785c63af4aa454176bbb9990b4e2708ce5e642.tar.gz
nixpkgs-84785c63af4aa454176bbb9990b4e2708ce5e642.tar.bz2
nixpkgs-84785c63af4aa454176bbb9990b4e2708ce5e642.tar.lz
nixpkgs-84785c63af4aa454176bbb9990b4e2708ce5e642.tar.xz
nixpkgs-84785c63af4aa454176bbb9990b4e2708ce5e642.tar.zst
nixpkgs-84785c63af4aa454176bbb9990b4e2708ce5e642.zip
ocamlPackages.logs: also build the optional `logs.browser` library
Diffstat (limited to 'pkgs/development/ocaml-modules/logs')
-rw-r--r--pkgs/development/ocaml-modules/logs/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/logs/default.nix b/pkgs/development/ocaml-modules/logs/default.nix
index fedfb1c7637..e786b02d93e 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;