Skip to content

Commit e06b770

Browse files
committed
ocamlPackages.wasm_of_ocaml-compiler: init at 6.0.1
1 parent 2e45857 commit e06b770

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
binaryen,
5+
cmdliner,
6+
js_of_ocaml-compiler,
7+
menhir,
8+
menhirLib,
9+
ppxlib,
10+
sedlex,
11+
yojson,
12+
}:
13+
14+
buildDunePackage {
15+
pname = "wasm_of_ocaml-compiler";
16+
inherit (js_of_ocaml-compiler) version src;
17+
minimalOCamlVersion = "4.12";
18+
19+
nativeBuildInputs = [
20+
binaryen
21+
menhir
22+
];
23+
24+
buildInputs = [
25+
cmdliner
26+
ppxlib
27+
];
28+
29+
propagatedBuildInputs = [
30+
js_of_ocaml-compiler
31+
menhirLib
32+
sedlex
33+
yojson
34+
];
35+
36+
meta = js_of_ocaml-compiler.meta // {
37+
description = "Compiler from OCaml bytecode to WebAssembly";
38+
mainProgram = "wasm_of_ocaml";
39+
maintainers = [ lib.maintainers.stepbrobd ];
40+
};
41+
}

pkgs/top-level/ocaml-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,6 +2012,8 @@ let
20122012

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

2015+
wasm_of_ocaml-compiler = callPackage ../development/tools/ocaml/js_of_ocaml/compiler-wasm.nix { };
2016+
20152017
wayland = callPackage ../development/ocaml-modules/wayland { };
20162018

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

0 commit comments

Comments
 (0)