0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00

ocamlPackages.js_of_ocaml: 5.9.1 → 6.0.1

This commit is contained in:
Vincent Laporte 2025-02-11 07:21:29 +01:00 committed by Vincent Laporte
parent e90f80f1c3
commit 814ecdf1a4
11 changed files with 58 additions and 23 deletions

View file

@ -14,7 +14,6 @@ buildDunePackage rec {
pname = "ctypes_stubs_js"; pname = "ctypes_stubs_js";
version = "0.1"; version = "0.1";
duneVersion = "3";
minimalOCamlVersion = "4.08"; minimalOCamlVersion = "4.08";
src = fetchFromGitLab { src = fetchFromGitLab {
@ -27,7 +26,12 @@ buildDunePackage rec {
propagatedBuildInputs = [ integers_stubs_js ]; propagatedBuildInputs = [ integers_stubs_js ];
nativeCheckInputs = [ nativeCheckInputs = [
nodejs nodejs
js_of_ocaml-compiler (
if lib.versionAtLeast js_of_ocaml-compiler.version "6.0" then
js_of_ocaml-compiler.override { version = "5.9.1"; }
else
js_of_ocaml-compiler
)
]; ];
checkInputs = [ checkInputs = [
ctypes ctypes

View file

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

View file

@ -9,6 +9,16 @@
zstd, zstd,
}: }:
let
js_of_ocaml-compiler = self.js_of_ocaml-compiler.override { version = "5.9.1"; };
js_of_ocaml = self.js_of_ocaml.override { inherit js_of_ocaml-compiler; };
gen_js_api = self.gen_js_api.override {
inherit js_of_ocaml-compiler;
ojs = self.ojs.override { inherit js_of_ocaml-compiler; };
};
js_of_ocaml-ppx = self.js_of_ocaml-ppx.override { inherit js_of_ocaml; };
in
with self; with self;
{ {

View file

@ -9,6 +9,16 @@
krb5, krb5,
}: }:
let
js_of_ocaml-compiler = self.js_of_ocaml-compiler.override { version = "5.9.1"; };
js_of_ocaml = self.js_of_ocaml.override { inherit js_of_ocaml-compiler; };
gen_js_api = self.gen_js_api.override {
inherit js_of_ocaml-compiler;
ojs = self.ojs.override { inherit js_of_ocaml-compiler; };
};
js_of_ocaml-ppx = self.js_of_ocaml-ppx.override { inherit js_of_ocaml; };
in
with self; with self;
{ {

View file

@ -8,6 +8,16 @@
zstd, zstd,
}: }:
let
js_of_ocaml-compiler = self.js_of_ocaml-compiler.override { version = "5.9.1"; };
js_of_ocaml = self.js_of_ocaml.override { inherit js_of_ocaml-compiler; };
gen_js_api = self.gen_js_api.override {
inherit js_of_ocaml-compiler;
ojs = self.ojs.override { inherit js_of_ocaml-compiler; };
};
js_of_ocaml-ppx = self.js_of_ocaml-ppx.override { inherit js_of_ocaml; };
in
with self; with self;
{ {

View file

@ -10,7 +10,7 @@
menhir, menhir,
menhirLib, menhirLib,
sedlex, sedlex,
version ? if lib.versionAtLeast ocaml.version "4.11" then "5.9.1" else "5.8.2", version ? if lib.versionAtLeast ocaml.version "4.11" then "6.0.1" else "5.8.2",
}: }:
buildDunePackage { buildDunePackage {
@ -22,6 +22,7 @@ buildDunePackage {
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz"; url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
hash = hash =
{ {
"6.0.1" = "sha256-gT2+4rYuFUEEnqI6IOQFzyROJ+v6mFl4XPpT4obSxhQ=";
"5.9.1" = "sha256-aMlcYIcdjpyaVMgvNeLtUEE7y0QPIg0LNRayoe4ccwc="; "5.9.1" = "sha256-aMlcYIcdjpyaVMgvNeLtUEE7y0QPIg0LNRayoe4ccwc=";
"5.8.2" = "sha256-ciAZS9L5sU2VgVOlogZ1A1nXtJ3hL+iNdFDThc7L8Eo="; "5.8.2" = "sha256-ciAZS9L5sU2VgVOlogZ1A1nXtJ3hL+iNdFDThc7L8Eo=";
} }

View file

@ -1,6 +1,5 @@
{ {
buildDunePackage, buildDunePackage,
js_of_ocaml-compiler,
js_of_ocaml-ppx, js_of_ocaml-ppx,
js_of_ocaml, js_of_ocaml,
lwt, lwt,
@ -10,7 +9,7 @@
buildDunePackage { buildDunePackage {
pname = "js_of_ocaml-lwt"; pname = "js_of_ocaml-lwt";
inherit (js_of_ocaml-compiler) version src; inherit (js_of_ocaml) version src meta;
buildInputs = [ js_of_ocaml-ppx ]; buildInputs = [ js_of_ocaml-ppx ];
@ -19,6 +18,4 @@ buildDunePackage {
lwt lwt
lwt_log lwt_log
]; ];
meta = builtins.removeAttrs js_of_ocaml-compiler.meta [ "mainProgram" ];
} }

View file

@ -1,17 +1,14 @@
{ {
buildDunePackage, buildDunePackage,
js_of_ocaml-compiler,
ppxlib,
js_of_ocaml, js_of_ocaml,
ppxlib,
}: }:
buildDunePackage { buildDunePackage {
pname = "js_of_ocaml-ppx"; pname = "js_of_ocaml-ppx";
inherit (js_of_ocaml-compiler) version src; inherit (js_of_ocaml) version src meta;
buildInputs = [ js_of_ocaml ]; buildInputs = [ js_of_ocaml ];
propagatedBuildInputs = [ ppxlib ]; propagatedBuildInputs = [ ppxlib ];
meta = builtins.removeAttrs js_of_ocaml-compiler.meta [ "mainProgram" ];
} }

View file

@ -1,6 +1,5 @@
{ {
buildDunePackage, buildDunePackage,
js_of_ocaml-compiler,
js_of_ocaml, js_of_ocaml,
ppxlib, ppxlib,
}: }:
@ -8,12 +7,10 @@
buildDunePackage { buildDunePackage {
pname = "js_of_ocaml-ppx_deriving_json"; pname = "js_of_ocaml-ppx_deriving_json";
inherit (js_of_ocaml-compiler) version src; inherit (js_of_ocaml) version src meta;
propagatedBuildInputs = [ propagatedBuildInputs = [
js_of_ocaml js_of_ocaml
ppxlib ppxlib
]; ];
meta = builtins.removeAttrs js_of_ocaml-compiler.meta [ "mainProgram" ];
} }

View file

@ -1,6 +1,5 @@
{ {
buildDunePackage, buildDunePackage,
js_of_ocaml-compiler,
js_of_ocaml-ppx, js_of_ocaml-ppx,
js_of_ocaml, js_of_ocaml,
reactivedata, reactivedata,
@ -10,7 +9,7 @@
buildDunePackage { buildDunePackage {
pname = "js_of_ocaml-tyxml"; pname = "js_of_ocaml-tyxml";
inherit (js_of_ocaml-compiler) version src; inherit (js_of_ocaml) version src meta;
buildInputs = [ js_of_ocaml-ppx ]; buildInputs = [ js_of_ocaml-ppx ];
@ -19,6 +18,4 @@ buildDunePackage {
reactivedata reactivedata
tyxml tyxml
]; ];
meta = builtins.removeAttrs js_of_ocaml-compiler.meta [ "mainProgram" ];
} }

View file

@ -460,7 +460,15 @@ let
stdenv = pkgs.gcc13Stdenv; stdenv = pkgs.gcc13Stdenv;
}; };
eliom = callPackage ../development/ocaml-modules/eliom { }; eliom = let
js_of_ocaml-compiler = self.js_of_ocaml-compiler.override { version = "5.9.1"; };
js_of_ocaml = self.js_of_ocaml.override { inherit js_of_ocaml-compiler; };
in callPackage ../development/ocaml-modules/eliom rec {
js_of_ocaml-ppx = self.js_of_ocaml-ppx.override { inherit js_of_ocaml; };
js_of_ocaml-ppx_deriving_json = self.js_of_ocaml-ppx_deriving_json.override { inherit js_of_ocaml; };
js_of_ocaml-lwt = self.js_of_ocaml-lwt.override { inherit js_of_ocaml js_of_ocaml-ppx; };
js_of_ocaml-tyxml = self.js_of_ocaml-tyxml.override { inherit js_of_ocaml js_of_ocaml-ppx; };
};
elpi = callPackage ../development/ocaml-modules/elpi ( elpi = callPackage ../development/ocaml-modules/elpi (
let ppxlib_0_15 = if lib.versionAtLeast ppxlib.version "0.15" let ppxlib_0_15 = if lib.versionAtLeast ppxlib.version "0.15"
@ -1425,7 +1433,12 @@ let
ocsigen-start = callPackage ../development/ocaml-modules/ocsigen-start { }; ocsigen-start = callPackage ../development/ocaml-modules/ocsigen-start { };
ocsigen-toolkit = callPackage ../development/ocaml-modules/ocsigen-toolkit { }; ocsigen-toolkit = let
js_of_ocaml-compiler = self.js_of_ocaml-compiler.override { version = "5.9.1"; };
js_of_ocaml = self.js_of_ocaml.override { inherit js_of_ocaml-compiler; };
in callPackage ../development/ocaml-modules/ocsigen-toolkit {
js_of_ocaml-ppx_deriving_json = self.js_of_ocaml-ppx_deriving_json.override { inherit js_of_ocaml; };
};
ocsipersist = callPackage ../development/ocaml-modules/ocsipersist {}; ocsipersist = callPackage ../development/ocaml-modules/ocsipersist {};