Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary flags
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed May 3, 2024
1 parent 2883d1f commit c5832b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,12 @@
name = finalArgs.name;
src = finalArgs.src;
nativeBuildInputs = with pkgs; [ makeWrapper ];
# TODO: bring in accordance with the new Wasmtime interface (WASMTIME_NEW_CLI=1)
installPhase = ''
mkdir -p $out/lib
cp ${wasmPkg}/lib/${finalArgs.name}.wasm $out/lib/${finalArgs.pkgName}.wasm
makeWrapper ${pkgs.wasmtime}/bin/wasmtime $out/bin/${finalArgs.pkgName} \
--set WASMTIME_NEW_CLI 0 \
--add-flags "$out/lib/${finalArgs.pkgName}.wasm" \
--add-flags "--"
--set WASMTIME_NEW_CLI 1 \
--add-flags "$out/lib/${finalArgs.pkgName}.wasm"
'';
};

Expand Down

0 comments on commit c5832b3

Please sign in to comment.