{ lib , rustPlatform , fetchFromGitHub }: rustPlatform.buildRustPackage rec { pname = "wit-bindgen"; version = "0.13.0"; src = fetchFromGitHub { owner = "bytecodealliance"; repo = "wit-bindgen"; rev = "wit-bindgen-cli-${version}"; hash = "sha256-IFMnuXHL8NVHxkV7oXM6WTE+LMZ2D4g1VdDv0J5V72A="; }; cargoHash = "sha256-9aocnv4msQ2/aIvN1HymKSuBxrtwdR9i31e7thtMh/k="; # Some tests fail because they need network access to install the `wasm32-unknown-unknown` target. # However, GitHub Actions ensures a proper build. # See also: # https://github.com/bytecodealliance/wit-bindgen/actions # https://github.com/bytecodealliance/wit-bindgen/blob/main/.github/workflows/main.yml doCheck = false; meta = with lib; { description = "A language binding generator for WebAssembly interface types"; homepage = "https://github.com/bytecodealliance/wit-bindgen"; license = licenses.asl20; maintainers = with maintainers; [ xrelkd ]; mainProgram = "wit-bindgen"; }; }