2023-03-20 01:57:14 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wit-bindgen";
|
2024-09-22 09:39:17 +00:00
|
|
|
version = "0.32.0";
|
2023-03-20 01:57:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bytecodealliance";
|
|
|
|
repo = "wit-bindgen";
|
2024-02-24 08:53:27 +00:00
|
|
|
rev = "v${version}";
|
2024-09-22 09:39:17 +00:00
|
|
|
hash = "sha256-AsKbmJBWIv/NjWzGdjTpbCs+esSkIli08qbEApppvOU=";
|
2023-03-20 01:57:14 +00:00
|
|
|
};
|
|
|
|
|
2024-09-22 09:39:17 +00:00
|
|
|
cargoHash = "sha256-+/7asqF4eXtl+/AhgSf+M3KIVqFf44EHb0FJTT4lo4c=";
|
2023-03-20 01:57:14 +00:00
|
|
|
|
|
|
|
# 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 ];
|
2023-08-16 20:58:46 +00:00
|
|
|
mainProgram = "wit-bindgen";
|
2023-03-20 01:57:14 +00:00
|
|
|
};
|
|
|
|
}
|