ocamlPackages.js_of_ocaml: 4.1.0 → 5.3.0

ocamlPackages.gen_js_api: disable checks with OCaml < 4.13
This commit is contained in:
Vincent Laporte 2023-07-04 21:52:21 +02:00
parent 78419edadf
commit ab55109304
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F
8 changed files with 6 additions and 14 deletions

View file

@ -1,4 +1,5 @@
{ buildDunePackage
, ocaml
, lib
, ppxlib
, fetchFromGitHub
@ -10,7 +11,6 @@
buildDunePackage rec {
pname = "gen_js_api";
version = "1.1.1";
duneVersion = "3";
src = fetchFromGitHub {
owner = "LexiFi";
@ -23,7 +23,7 @@ buildDunePackage rec {
propagatedBuildInputs = [ ojs ppxlib ];
nativeCheckInputs = [ js_of_ocaml-compiler nodejs ];
doCheck = true;
doCheck = lib.versionAtLeast ocaml.version "4.13";
meta = {
homepage = "https://github.com/LexiFi/gen_js_api";

View file

@ -1,24 +1,22 @@
{ lib, fetchurl, buildDunePackage
, cmdliner, yojson, ppxlib, findlib
, menhir, menhirLib
, menhir, menhirLib, sedlex
}:
buildDunePackage rec {
pname = "js_of_ocaml-compiler";
version = "4.1.0";
duneVersion = "3";
version = "5.3.0";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
sha256 = "sha256-kXk/KaWvPeq6P301zqsR5znP4KXMMFVvYgFGGm1CNu8=";
hash = "sha256-vp497rmOXSjxvLLZhHwE0ohfwH7VjM2LCKpLZijNZNI=";
};
nativeBuildInputs = [ menhir ];
buildInputs = [ cmdliner ppxlib ];
configurePlatforms = [];
propagatedBuildInputs = [ menhirLib yojson findlib ];
propagatedBuildInputs = [ menhirLib yojson findlib sedlex ];
meta = {
description = "Compiler from OCaml bytecode to Javascript";

View file

@ -6,7 +6,6 @@ buildDunePackage {
pname = "js_of_ocaml";
inherit (js_of_ocaml-compiler) version src;
duneVersion = "3";
buildInputs = [ ppxlib ];

View file

@ -6,7 +6,6 @@ buildDunePackage {
pname = "js_of_ocaml-lwt";
inherit (js_of_ocaml-compiler) version src;
duneVersion = "3";
buildInputs = [ js_of_ocaml-ppx ];

View file

@ -7,7 +7,6 @@ buildDunePackage {
pname = "js_of_ocaml-ppx";
inherit (js_of_ocaml-compiler) version src;
duneVersion = "3";
buildInputs = [ js_of_ocaml ];
propagatedBuildInputs = [ ppxlib ];

View file

@ -6,7 +6,6 @@ buildDunePackage {
pname = "js_of_ocaml-ppx_deriving_json";
inherit (js_of_ocaml-compiler) version src;
duneVersion = "3";
propagatedBuildInputs = [ js_of_ocaml ppxlib ];

View file

@ -1,7 +1,6 @@
{ lib, buildDunePackage, js_of_ocaml-compiler, ppxlib }:
buildDunePackage {
duneVersion = "3";
pname = "js_of_ocaml-toplevel";
inherit (js_of_ocaml-compiler) src version;
buildInputs = [ ppxlib ];

View file

@ -7,7 +7,6 @@ buildDunePackage {
pname = "js_of_ocaml-tyxml";
inherit (js_of_ocaml-compiler) version src;
duneVersion = "3";
buildInputs = [ js_of_ocaml-ppx ];