1 { lib, stdenv, rustPlatform, fetchCrate }:
3 rustPlatform.buildRustPackage rec {
10 sha256 = "sha256-3Hc3KKqtbZtvD+3lb/W7+AyrwPukJyxpUe94KGQlzBI=";
13 cargoSha256 = "sha256-zv36/W7dNpIupYn8TS+NaF7uX+BVjrI6AW6Hrlqr8Xg=";
15 cargoBuildFlags = [ "--bin" pname ];
17 buildFeatures = [ "env_logger" "structopt" ];
19 # Setting $HOME to a temporary directory is necessary to prevent checks from failing, as
20 # the test suite creates a cache directory at $HOME/Library/Caches/BytecodeAlliance.wasmtime.
22 export HOME=$(mktemp -d)
26 description = "The WebAssembly pre-initializer";
27 homepage = "https://github.com/bytecodealliance/wizer";
28 license = licenses.asl20;
29 maintainers = with maintainers; [ lucperkins ];
30 broken = stdenv.isx86_64 && stdenv.isDarwin;