From 688be46c678293c40aba30fcc71b3cbbdceba246 Mon Sep 17 00:00:00 2001 From: Anish Pallati Date: Fri, 9 Jan 2026 18:39:02 -0500 Subject: [PATCH] dioxus-cli: add wasm-bindgen-cli to PATH --- pkgs/by-name/di/dioxus-cli/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/di/dioxus-cli/package.nix b/pkgs/by-name/di/dioxus-cli/package.nix index 8464548ca211..274af1d1bc27 100644 --- a/pkgs/by-name/di/dioxus-cli/package.nix +++ b/pkgs/by-name/di/dioxus-cli/package.nix @@ -6,6 +6,8 @@ cacert, openssl, rustfmt, + makeWrapper, + wasm-bindgen-cli_0_2_106, nix-update-script, testers, dioxus-cli, @@ -35,6 +37,7 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config cacert + makeWrapper ]; buildInputs = [ @@ -65,6 +68,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 +83,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; maintainers = with lib.maintainers; [ cathalmullan + anish ]; platforms = lib.platforms.all; mainProgram = "dx";