depot/third_party/nixpkgs/pkgs/by-name/wi/wit-bindgen/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

33 lines
1,003 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "wit-bindgen";
version = "0.28.0";
src = fetchFromGitHub {
owner = "bytecodealliance";
repo = "wit-bindgen";
rev = "v${version}";
hash = "sha256-WE+a0y97aPWEUHZT/LRjZ/WRZP7QxF4DXVjJVRjuJFU=";
};
cargoHash = "sha256-Z6dBlYT4aYh92LZGH/+NAkkf80KZtId1emVaeOfpEjM=";
# 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";
};
}