{ lib , rustPlatform , fetchFromGitHub }: rustPlatform.buildRustPackage rec { pname = "wit-bindgen"; version = "0.34.0"; src = fetchFromGitHub { owner = "bytecodealliance"; repo = "wit-bindgen"; rev = "v${version}"; hash = "sha256-ZnMQpIfKN6ByEZasvy+UM12ZBsrhTM1s3TN1dF/3YMY="; }; cargoHash = "sha256-eF1qJ0fH3ODG1u9tUD3dj/2i7+0BJ4fJPlaYjS3XiGU="; # 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 = "Language binding generator for WebAssembly interface types"; homepage = "https://github.com/bytecodealliance/wit-bindgen"; license = licenses.asl20; maintainers = with maintainers; [ xrelkd ]; mainProgram = "wit-bindgen"; }; }