Unverified Commit 1a080301 authored by Matthias Beyer's avatar Matthias Beyer Committed by GitHub
Browse files

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

parents 623e2b7b 8fd13fc7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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";