mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
ocamlPackages.logs: also build the optional logs.browser
library
This commit is contained in:
parent
3f457de545
commit
84785c63af
@ -1,5 +1,7 @@
|
|||||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild
|
||||||
, topkg, result, lwt, cmdliner, fmt }:
|
, topkg, result, lwt, cmdliner, fmt
|
||||||
|
, js_of_ocaml
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
pname = "logs";
|
pname = "logs";
|
||||||
webpage = "https://erratique.ch/software/${pname}";
|
webpage = "https://erratique.ch/software/${pname}";
|
||||||
@ -19,10 +21,10 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
||||||
buildInputs = [ findlib topkg fmt cmdliner lwt ];
|
buildInputs = [ findlib topkg fmt cmdliner js_of_ocaml lwt ];
|
||||||
propagatedBuildInputs = [ result ];
|
propagatedBuildInputs = [ result ];
|
||||||
|
|
||||||
buildPhase = "${topkg.run} build --with-js_of_ocaml false";
|
buildPhase = "${topkg.run} build --with-js_of_ocaml true";
|
||||||
|
|
||||||
inherit (topkg) installPhase;
|
inherit (topkg) installPhase;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user