lol

ocamlPackages.ptime: allow switching off js_of_ocaml support

authored by

sternenseemann and committed by
Vincent Laporte
9ff91f96 6a273779

+6 -3
+6 -3
pkgs/development/ocaml-modules/ptime/default.nix
··· 1 - { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result, js_of_ocaml }: 1 + { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result, js_of_ocaml 2 + , jsooSupport ? true 3 + }: 2 4 3 5 stdenv.mkDerivation rec { 4 6 version = "0.8.5"; ··· 10 12 }; 11 13 12 14 nativeBuildInputs = [ ocaml findlib ocamlbuild ]; 13 - buildInputs = [ findlib topkg js_of_ocaml ]; 15 + buildInputs = [ findlib topkg ] 16 + ++ lib.optional jsooSupport js_of_ocaml; 14 17 15 18 propagatedBuildInputs = [ result ]; 16 19 17 - buildPhase = "${topkg.run} build --with-js_of_ocaml true"; 20 + buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}"; 18 21 19 22 inherit (topkg) installPhase; 20 23