ocamlPackages.ptime: 0.8.6 → 1.0.0
This commit is contained in:
parent
bdd6fb4db0
commit
e4168845c7
|
@ -1,26 +1,24 @@
|
||||||
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, js_of_ocaml
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
||||||
, jsooSupport ? true
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
|
||||||
version = "0.8.6";
|
"ptime is not available for OCaml ${ocaml.version}"
|
||||||
pname = "ocaml${ocaml.version}-ptime";
|
|
||||||
|
|
||||||
minimalOCamlVersion = "4.03";
|
stdenv.mkDerivation rec {
|
||||||
|
version = "1.0.0";
|
||||||
|
pname = "ocaml${ocaml.version}-ptime";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://erratique.ch/software/ptime/releases/ptime-${version}.tbz";
|
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 ];
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||||
buildInputs = [ topkg ] ++ lib.optional jsooSupport js_of_ocaml;
|
buildInputs = [ topkg ];
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}";
|
inherit (topkg) buildPhase installPhase;
|
||||||
|
|
||||||
inherit (topkg) installPhase;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://erratique.ch/software/ptime";
|
homepage = "https://erratique.ch/software/ptime";
|
||||||
|
|
Loading…
Reference in a new issue