diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-11-19 07:21:55 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-11-24 18:17:41 +0100 |
commit | e4168845c752fdea46baf96e9c6f35fd590019f5 (patch) | |
tree | 7d8734e50f5473c016fcb90c4dc043f8444affe7 /pkgs | |
parent | bdd6fb4db05e2a957e27c4dee7efa91ffe9dbaa0 (diff) |
ocamlPackages.ptime: 0.8.6 → 1.0.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/ptime/default.nix | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/development/ocaml-modules/ptime/default.nix b/pkgs/development/ocaml-modules/ptime/default.nix index 169cf4ce16f5a..ee12abd3e3b1d 100644 --- a/pkgs/development/ocaml-modules/ptime/default.nix +++ b/pkgs/development/ocaml-modules/ptime/default.nix @@ -1,26 +1,24 @@ -{ 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"; |