8 rustPlatform.buildRustPackage rec {
12 # the crate does not contain files which are necessary for the tests
13 # see https://github.com/bytecodealliance/wizer/commit/3a95e27ce42f1fdaef07b52988e4699eaa221e04
14 src = fetchFromGitHub {
15 owner = "bytecodealliance";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-bx8V/jaKDpJdWRwYm6GrjsdXQpDyTulRMKVnQZlqLNE=";
21 cargoHash = "sha256-8iQ6ULdle8tJDPgIoPT9R3jfS32tBBfs4vZNQcV8vfs=";
23 cargoBuildFlags = [ "--bin" pname ];
25 buildFeatures = [ "env_logger" "structopt" ];
27 # Setting $HOME to a temporary directory is necessary to prevent checks from failing, as
28 # the test suite creates a cache directory at $HOME/Library/Caches/BytecodeAlliance.wasmtime.
30 export HOME=$(mktemp -d)
34 version = testers.testVersion { package = wizer; };
38 description = "WebAssembly pre-initializer";
39 mainProgram = "wizer";
40 homepage = "https://github.com/bytecodealliance/wizer";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ lucperkins amesgen ];