depot/third_party/nixpkgs/pkgs/tools/misc/wit-bindgen/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

32 lines
986 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "wit-bindgen";
version = "0.8.0";
src = fetchFromGitHub {
owner = "bytecodealliance";
repo = "wit-bindgen";
rev = "wit-bindgen-cli-${version}";
hash = "sha256-NUPCRIBmACWpJALsZmbRQLJ8fpcRyf0nUmNnTyiwKYc=";
};
cargoHash = "sha256-JASKEri9ZtDtkMkhBS3fB4JWg43Le11YJvuvOF76bCo=";
# 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 ];
};
}