2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wasm-tools";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.217.0";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bytecodealliance";
|
|
|
|
repo = pname;
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-nxfYoR0ba0As00WbahSVFNItSlleMmITqs8eJabjD/U=";
|
2023-03-15 16:39:30 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
# Disable cargo-auditable until https://github.com/rust-secure-code/cargo-auditable/issues/124 is solved.
|
|
|
|
auditable = false;
|
2024-10-04 16:56:33 +00:00
|
|
|
cargoHash = "sha256-mBSRJYSE3HmeWhnW4nFF8uFnUJaZ6wdqsq+GnL6SZWc=";
|
2023-03-15 16:39:30 +00:00
|
|
|
cargoBuildFlags = [ "--package" "wasm-tools" ];
|
2024-10-04 16:56:33 +00:00
|
|
|
cargoTestFlags = [ "--all" ] ++
|
|
|
|
# Due to https://github.com/bytecodealliance/wasm-tools/issues/1820
|
|
|
|
[ "--" "--test-threads=1" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "wasm-tools";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|