From 7310f785f61e9d279bf51e200c474af222c19ad6 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Thu, 2 May 2024 12:29:05 -0300 Subject: [PATCH] Add simple package output --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 8fc6110..8ecf056 100644 --- a/flake.nix +++ b/flake.nix @@ -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 { }; @@ -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;