2025-06-14 17:59:35 +00:00

44 lines
1.0 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "wasm-tools";
version = "1.235.0";
src = fetchFromGitHub {
owner = "bytecodealliance";
repo = "wasm-tools";
rev = "v${version}";
hash = "sha256-SrWmoDSz2/qSiex46CeDIgarjgGRp2KOThGP4YjglZY=";
fetchSubmodules = true;
};
# Disable cargo-auditable until https://github.com/rust-secure-code/cargo-auditable/issues/124 is solved.
auditable = false;
useFetchCargoVendor = true;
cargoHash = "sha256-j4tZupbWYcFy6M7XgDJjOKcvEYSNkQd30hvB2keVZwE=";
cargoBuildFlags = [
"--package"
"wasm-tools"
];
cargoTestFlags =
[ "--all" ]
++
# Due to https://github.com/bytecodealliance/wasm-tools/issues/1820
[
"--"
"--test-threads=1"
];
meta = with lib; {
description = "Low level tooling for WebAssembly in Rust";
homepage = "https://github.com/bytecodealliance/wasm-tools";
license = licenses.asl20;
maintainers = with maintainers; [ ereslibre ];
mainProgram = "wasm-tools";
};
}