2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wasm-tools";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.0.45";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bytecodealliance";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-8iIYExnWK9W9gVTV66ygY2gu3N1pwylUeOf6LOz51qA=";
|
2023-03-15 16:39:30 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-KwtlgBcijeYRQ5Yfrqd6GirHkbZqAVd2/yP6aJT3pWM=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|