Skip to content

Commit

Permalink
Merge pull request #659 from hacspec/fix-506
Browse files Browse the repository at this point in the history
fix(nix/): engine: js: allow `dune-js`, make only one output
  • Loading branch information
W95Psp authored May 13, 2024
2 parents b70d990 + 9498a5c commit 5a56523
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 5a56523

Please sign in to comment.