fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
33 lines
1,005 B
Nix
33 lines
1,005 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wit-bindgen";
|
|
version = "0.26.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bytecodealliance";
|
|
repo = "wit-bindgen";
|
|
rev = "v${version}";
|
|
hash = "sha256-A73ONUSW5pDoDB7+U3kOcLWnYxco9brhhL1cRLh2wug=";
|
|
};
|
|
|
|
cargoHash = "sha256-L15XhJ1h9jmIBmtIob5X3EXkVDCqaBCrtI9sojtRUTQ=";
|
|
|
|
# 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";
|
|
};
|
|
}
|