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

Commit

Permalink
Add simple package output
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed May 2, 2024
1 parent af9947e commit 7310f78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@

packages = forAllSystems ({ pkgs, system }: rec {
default = hello-wasm-pkg;
hello-wasm = pkgs.buildRustWasiWasm {
name = "hello-wasm";
src = self;
};
hello-wasm-pkg = pkgs.buildRustWasmPackage { };
hello-wasmtime-exec = pkgs.buildRustWasmtimeExec { };
hello-wasmedge-exec = pkgs.buildRustWasmEdgeExec { };
Expand Down Expand Up @@ -171,7 +175,6 @@
--details $out/lib/${finalArgs.pkgName}.wasm > $out/share/${finalArgs.pkgName}-dump.txt
'';
checkPhase = ''
wasm-validate $out/lib/${finalArgs.pkgName}.wasm
wasm-validate $out/lib/${finalArgs.pkgName}-stripped.wasm
'';
doCheck = true;
Expand Down

0 comments on commit 7310f78

Please sign in to comment.