{ lib , rustPlatform , fetchFromGitHub }: rustPlatform.buildRustPackage rec { pname = "wasm-tools"; version = "1.0.45"; src = fetchFromGitHub { owner = "bytecodealliance"; repo = pname; rev = "${pname}-${version}"; hash = "sha256-8iIYExnWK9W9gVTV66ygY2gu3N1pwylUeOf6LOz51qA="; fetchSubmodules = true; }; cargoHash = "sha256-KwtlgBcijeYRQ5Yfrqd6GirHkbZqAVd2/yP6aJT3pWM="; 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 ]; }; }