2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wit-bindgen";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.16.0";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bytecodealliance";
|
|
|
|
repo = "wit-bindgen";
|
|
|
|
rev = "wit-bindgen-cli-${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-QqLTXvzBobDsdwo30yUFK2bHedawiYPni2zhKk6I7j8=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
cargoHash = "sha256-R2F/6f9BRN9omLFBQbP5Vi3szWifEyLMHMILFzLN0cU=";
|
2023-03-24 00:07:29 +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 = "A language binding generator for WebAssembly interface types";
|
|
|
|
homepage = "https://github.com/bytecodealliance/wit-bindgen";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "wit-bindgen";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
}
|