ocamlPackages.js_of_ocaml: 5.8.2 → 5.9.1

This commit is contained in:
Vincent Laporte 2024-12-02 15:23:02 +01:00 committed by Vincent Laporte
parent af13d121e5
commit 2b413270b5
3 changed files with 12 additions and 8 deletions

View File

@ -1,16 +1,20 @@
{ lib, fetchurl, buildDunePackage
{ lib, fetchurl, ocaml, buildDunePackage
, cmdliner, yojson, ppxlib, findlib
, menhir, menhirLib, sedlex
, version ? if lib.versionAtLeast ocaml.version "4.11" then "5.9.1" else "5.8.2"
}:
buildDunePackage rec {
buildDunePackage {
pname = "js_of_ocaml-compiler";
version = "5.8.2";
inherit version;
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/ocsigen/js_of_ocaml/releases/download/${version}/js_of_ocaml-${version}.tbz";
hash = "sha256-ciAZS9L5sU2VgVOlogZ1A1nXtJ3hL+iNdFDThc7L8Eo=";
hash = {
"5.9.1" = "sha256-aMlcYIcdjpyaVMgvNeLtUEE7y0QPIg0LNRayoe4ccwc=";
"5.8.2" = "sha256-ciAZS9L5sU2VgVOlogZ1A1nXtJ3hL+iNdFDThc7L8Eo=";
}."${version}";
};
nativeBuildInputs = [ menhir ];

View File

@ -1,5 +1,5 @@
{ buildDunePackage, js_of_ocaml-compiler
, ppxlib, uchar
, ppxlib
}:
buildDunePackage {
@ -9,7 +9,7 @@ buildDunePackage {
buildInputs = [ ppxlib ];
propagatedBuildInputs = [ js_of_ocaml-compiler uchar ];
propagatedBuildInputs = [ js_of_ocaml-compiler ];
meta = builtins.removeAttrs js_of_ocaml-compiler.meta [ "mainProgram" ];
}

View File

@ -1,5 +1,5 @@
{ buildDunePackage, js_of_ocaml-compiler, js_of_ocaml-ppx
, js_of_ocaml, ocaml_lwt, lwt_log
, js_of_ocaml, lwt, lwt_log
}:
buildDunePackage {
@ -9,7 +9,7 @@ buildDunePackage {
buildInputs = [ js_of_ocaml-ppx ];
propagatedBuildInputs = [ js_of_ocaml ocaml_lwt lwt_log ];
propagatedBuildInputs = [ js_of_ocaml lwt lwt_log ];
meta = builtins.removeAttrs js_of_ocaml-compiler.meta [ "mainProgram" ];
}