Skip to content

Commit

Permalink
ocamlPackages.js_of_ocaml: 5.8.2 → 5.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Dec 3, 2024
1 parent 5a93aea commit e8ea13d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix
Original file line number Diff line number Diff line change
@@ -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 ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/ocaml/js_of_ocaml/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ buildDunePackage, js_of_ocaml-compiler
, ppxlib, uchar
, ppxlib
}:

buildDunePackage {
Expand All @@ -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" ];
}
4 changes: 2 additions & 2 deletions pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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" ];
}

0 comments on commit e8ea13d

Please sign in to comment.