mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
34 lines
1003 B
Nix
34 lines
1003 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wit-bindgen";
|
|
version = "0.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bytecodealliance";
|
|
repo = "wit-bindgen";
|
|
rev = "v${version}";
|
|
hash = "sha256-MeozLpwtOFnYxK2H+9bd7nG6BL6jSVqfBCVg1t3lErQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-d6oMUAGyIFDWtjgXfIe0k3hx7QTFTfVuKnQ3XRux1HU=";
|
|
|
|
# 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";
|
|
};
|
|
}
|