13 hash ? "sha256-prMIreQeAcbJ8/g3+pMp1Wp9H5u+xLqxRxL+34hICss=",
14 cargoHash ? "sha256-6iMebkD7FQvixlmghGGIvpdGwFNLfnUcFke/Rg8nPK4=",
17 rustPlatform.buildRustPackage rec {
18 pname = "wasm-bindgen-cli";
19 inherit version hash cargoHash;
21 src = fetchCrate { inherit pname version hash; };
23 nativeBuildInputs = [ pkg-config ];
27 ++ lib.optionals stdenv.hostPlatform.isDarwin [
29 darwin.apple_sdk.frameworks.Security
32 nativeCheckInputs = [ nodejs_latest ];
34 # tests require it to be ran in the wasm-bindgen monorepo
37 passthru.updateScript = nix-update-script { };
40 homepage = "https://rustwasm.github.io/docs/wasm-bindgen/";
41 license = with lib.licenses; [
45 description = "Facilitating high-level interactions between wasm modules and JavaScript";
46 maintainers = with lib.maintainers; [ rizary ];
47 mainProgram = "wasm-bindgen";