depot/third_party/nixpkgs/pkgs/by-name/wi/wit-bindgen/package.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

33 lines
1,003 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "wit-bindgen";
version = "0.27.0";
src = fetchFromGitHub {
owner = "bytecodealliance";
repo = "wit-bindgen";
rev = "v${version}";
hash = "sha256-df2MBn5Ob9lQleiaKJnxFotI0AmdGJs/ifS9WCObXUo=";
};
cargoHash = "sha256-y1jyDRPoaeoZYPTqonYwMOtOkQ/S54mbbTU2jBX6Teg=";
# 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";
};
}