diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-12-20 19:32:00 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-02-01 16:11:29 +0100 |
commit | 9ff91f967cb6ad74bb621f5dfa07ce42a83c29dc (patch) | |
tree | e8e32a61e20682c05275e008c9f3f052b462dcb3 | |
parent | 6a27377958acc3f036843eced9332bee7ef46995 (diff) |
ocamlPackages.ptime: allow switching off js_of_ocaml support
-rw-r--r-- | pkgs/development/ocaml-modules/ptime/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/ptime/default.nix b/pkgs/development/ocaml-modules/ptime/default.nix index 50ad5ea94eb94..d99ec7ed32088 100644 --- a/pkgs/development/ocaml-modules/ptime/default.nix +++ b/pkgs/development/ocaml-modules/ptime/default.nix @@ -1,4 +1,6 @@ -{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result, js_of_ocaml }: +{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result, js_of_ocaml +, jsooSupport ? true +}: stdenv.mkDerivation rec { version = "0.8.5"; @@ -10,11 +12,12 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ ocaml findlib ocamlbuild ]; - buildInputs = [ findlib topkg js_of_ocaml ]; + buildInputs = [ findlib topkg ] + ++ 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; |