Loading pkgs/development/ocaml-modules/ptime/default.nix +8 −10 Original line number Diff line number Diff line { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, js_of_ocaml , jsooSupport ? true { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }: lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08") "ptime is not available for OCaml ${ocaml.version}" stdenv.mkDerivation rec { version = "0.8.6"; version = "1.0.0"; pname = "ocaml${ocaml.version}-ptime"; minimalOCamlVersion = "4.03"; src = fetchurl { url = "https://erratique.ch/software/ptime/releases/ptime-${version}.tbz"; sha256 = "sha256-gy/fUsfUHUZx1A/2sQMQIFMHl1V+QO3zHAsEnZT/lkI="; sha256 = "sha256-RByDjAFiyDdR8G663/MxabuSHTTuwVn7urtw7Z3iEQs="; }; nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; buildInputs = [ topkg ] ++ lib.optional jsooSupport js_of_ocaml; buildInputs = [ topkg ]; strictDeps = true; buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}"; inherit (topkg) installPhase; inherit (topkg) buildPhase installPhase; meta = { homepage = "https://erratique.ch/software/ptime"; Loading Loading
pkgs/development/ocaml-modules/ptime/default.nix +8 −10 Original line number Diff line number Diff line { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, js_of_ocaml , jsooSupport ? true { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }: lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08") "ptime is not available for OCaml ${ocaml.version}" stdenv.mkDerivation rec { version = "0.8.6"; version = "1.0.0"; pname = "ocaml${ocaml.version}-ptime"; minimalOCamlVersion = "4.03"; src = fetchurl { url = "https://erratique.ch/software/ptime/releases/ptime-${version}.tbz"; sha256 = "sha256-gy/fUsfUHUZx1A/2sQMQIFMHl1V+QO3zHAsEnZT/lkI="; sha256 = "sha256-RByDjAFiyDdR8G663/MxabuSHTTuwVn7urtw7Z3iEQs="; }; nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; buildInputs = [ topkg ] ++ lib.optional jsooSupport js_of_ocaml; buildInputs = [ topkg ]; strictDeps = true; buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}"; inherit (topkg) installPhase; inherit (topkg) buildPhase installPhase; meta = { homepage = "https://erratique.ch/software/ptime"; Loading