Skip to content

Commit

Permalink
ocamlPackages.wasm_of_ocaml-compiler: init at 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stepbrobd authored and vbgl committed Feb 24, 2025
1 parent 4d94fa1 commit 2938bfe
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/development/tools/ocaml/js_of_ocaml/compiler-wasm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
lib,
buildDunePackage,
binaryen,
cmdliner,
js_of_ocaml-compiler,
menhir,
menhirLib,
ppxlib,
sedlex,
yojson,
}:

buildDunePackage {
pname = "wasm_of_ocaml-compiler";
inherit (js_of_ocaml-compiler) version src;
minimalOCamlVersion = "4.12";

nativeBuildInputs = [
binaryen
menhir
];

buildInputs = [
cmdliner
ppxlib
];

propagatedBuildInputs = [
js_of_ocaml-compiler
menhirLib
sedlex
yojson
];

meta = js_of_ocaml-compiler.meta // {
description = "Compiler from OCaml bytecode to WebAssembly";
mainProgram = "wasm_of_ocaml";
maintainers = [ lib.maintainers.stepbrobd ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,8 @@ let

wasm = callPackage ../development/ocaml-modules/wasm { };

wasm_of_ocaml-compiler = callPackage ../development/tools/ocaml/js_of_ocaml/compiler-wasm.nix { };

wayland = callPackage ../development/ocaml-modules/wayland { };

webbrowser = callPackage ../development/ocaml-modules/webbrowser { };
Expand Down

0 comments on commit 2938bfe

Please sign in to comment.