dioxus-cli: fix missing wasm-bindgen-cli runtime dependency (#478568)

This commit is contained in:
Matthias Beyer
2026-01-10 15:04:53 +00:00
committed by GitHub
2 changed files with 16 additions and 2 deletions
+7
View File
@@ -1832,6 +1832,13 @@
githubId = 6091755;
name = "Anirrudh Krishnan";
};
anish = {
email = "i@anish.land";
github = "ap-1";
githubId = 67872951;
name = "Anish Pallati";
keys = [ { fingerprint = "2A0A 16F5 E026 BE3B A47F B7A6 841A FB68 9A5B ACCB"; } ];
};
ankhers = {
email = "me@ankhers.dev";
github = "ankhers";
+9 -2
View File
@@ -6,7 +6,8 @@
cacert,
openssl,
rustfmt,
nix-update-script,
makeWrapper,
wasm-bindgen-cli_0_2_106,
testers,
dioxus-cli,
withTelemetry ? false,
@@ -35,6 +36,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
nativeBuildInputs = [
pkg-config
cacert
makeWrapper
];
buildInputs = [
@@ -53,7 +55,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
];
passthru = {
updateScript = nix-update-script { };
tests = {
version = testers.testVersion {
package = dioxus-cli;
@@ -65,6 +66,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
};
};
postInstall = ''
wrapProgram $out/bin/dx \
--prefix PATH : ${lib.makeBinPath [ wasm-bindgen-cli_0_2_106 ]}
'';
meta = {
description = "CLI for building fullstack web, desktop, and mobile apps with a single codebase.";
homepage = "https://dioxus.dev";
@@ -75,6 +81,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
];
maintainers = with lib.maintainers; [
cathalmullan
anish
];
platforms = lib.platforms.all;
mainProgram = "dx";