2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wit-bindgen";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.33.0";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bytecodealliance";
|
|
|
|
repo = "wit-bindgen";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-+3tWqNdDZagJa9cLSz1OBaPtCr2F1joYyzB//BPqV34=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
cargoHash = "sha256-3TrnSU7qXC8INlEZMbYTNwZsqiKMZ6j7tdGmz3DFl1g=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Language binding generator for WebAssembly interface types";
|
2023-03-24 00:07:29 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|