2023-03-09 23:53:30 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wasm-tools";
|
2024-03-26 17:24:54 +01:00
|
|
|
version = "1.202.0";
|
2023-03-09 23:53:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bytecodealliance";
|
|
|
|
repo = pname;
|
2024-02-16 19:29:48 +01:00
|
|
|
rev = "v${version}";
|
2024-03-26 17:24:54 +01:00
|
|
|
hash = "sha256-7JH93VaRQTi2pcHYB+oDqe1FDiyNDWXwRnw5qZMEi7c=";
|
2023-03-09 23:53:30 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-10-16 18:16:07 +02:00
|
|
|
# Disable cargo-auditable until https://github.com/rust-secure-code/cargo-auditable/issues/124 is solved.
|
|
|
|
auditable = false;
|
2024-03-26 17:24:54 +01:00
|
|
|
cargoHash = "sha256-8W2x9pbIu/9DXrRXo4IbSBSa8wAFj5djNpHq7gfa46E=";
|
2023-03-09 23:53:30 +01: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 ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "wasm-tools";
|
2023-03-09 23:53:30 +01:00
|
|
|
};
|
|
|
|
}
|