2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wasm-tools";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "1.212.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-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-7raUPwqCOPywVBCRZbzqtk6qy7hWvBFQ7l0V28UBUI4=";
|
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-07-01 15:47:52 +00:00
|
|
|
cargoHash = "sha256-tIber/XmA76NAvLI+qMN0ipkulh945fGoAtf2xUJufA=";
|
2023-03-15 16:39:30 +00:00
|
|
|
cargoBuildFlags = [ "--package" "wasm-tools" ];
|
|
|
|
cargoTestFlags = [ "--all" ];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|