Skip to content

Commit

Permalink
fix(nix/): engine: js: allow dune-js, make only one output
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed May 13, 2024
1 parent b70d990 commit 9498a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
pname = "hax-engine";
version = "0.0.1";
duneVersion = "3";
src = lib.sourceFilesBySuffices ./. [".ml" ".mli" ".js" "dune" "dune-project" "sh" "rs" "mld"];
src = lib.sourceFilesBySuffices ./. [".ml" ".mli" ".js" "dune" "dune-js" "dune-project" "sh" "rs" "mld"];
buildInputs = with ocamlPackages;
[
zarith_stubs_js
Expand Down Expand Up @@ -110,6 +110,7 @@
js = hax-engine.overrideAttrs (old: {
name = "hax-engine.js";
nativeBuildInputs = old.nativeBuildInputs ++ [closurecompiler gnused];
outputs = ["out"];
buildPhase = ''
# Enable JS build
sed -i "s/; (include dune-js)/(include dune-js)/g" bin/dune
Expand Down

0 comments on commit 9498a5c

Please sign in to comment.