git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.ptime: allow switching off js_of_ocaml support
commit9ff91f967cb6ad74bb621f5dfa07ce42a83c29dc authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> dateSun 20 Dec 2020, 19:32 (6 years ago) parent6a27377
1 file changed+6−3
pkgs/development/ocaml-modules/ptime/default.nix+6−3
pkgs/development/ocaml-modules/ptime/default.nix+6−3
@@ -1,4 +1,6 @@
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+}:
24
35stdenv.mkDerivation rec {
46 version = "0.8.5";
@@ -10,11 +12,12 @@ stdenv.mkDerivation rec {
1012 };
1113
1214 nativeBuildInputs = [ ocaml findlib ocamlbuild ];
13− buildInputs = [ findlib topkg js_of_ocaml ];
15+ buildInputs = [ findlib topkg ]
16+ ++ lib.optional jsooSupport js_of_ocaml;
1417
1518 propagatedBuildInputs = [ result ];
1619
17− buildPhase = "${topkg.run} build --with-js_of_ocaml true";
20+ buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}";
1821
1922 inherit (topkg) installPhase;
2023