Skip to content

De-risk the tauri-plugin-holochain dependency (Part 0 of the unified-plugin migration) - #205

Merged
Amirhesp merged 6 commits into
developfrom
chore/de-risk-darksoil-dep
Aug 31, 2026
Merged

Amirhesp merged 6 commits into
developfrom
chore/de-risk-darksoil-dep

Conversation

@zippy

@zippy zippy commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Volla's desktop builds and dev shells both depend on darksoil-studio/tauri-plugin-holochain . The full migration off it (to holochain/android-service-runtime's unified plugin) is deferred to the hc 0.7 update — see the plan document added in this PR (docs/superpowers/plans/2026-08-13-desktop-unified-plugin-migration.md). This PR is Part 0 of that plan: insulate the 0.6.x release line in the meantime.

Changes

  • Pin the Cargo dependency to an exact rev (387bf70, the commit already in Cargo.lock) instead of branch = "main-0.6.1", so a branch deletion or force-push can't break builds. Fallback if the repo itself disappears: push a local clone to a HelloVolla-controlled remote and swap the git URL (documented in the README).
  • Self-contained dev shells — flake.nix no longer pulls the darksoil dev-shell flake (same shape as holochain/android-service-runtime and volla-cloud-services):
    • New rust-toolchain.toml: rust 1.89.0 (matching what the release workflows already install) with the Android + wasm32 targets, so nix, rustup, and CI stay in sync.
    • webkitgtk 2.52 (was 2.42 via the darksoil pin) with the EGL vendor-discovery shellHook needed by webkitgtk ≥ 2.44 on non-NixOS hosts, plus GIO TLS modules and GTK schema paths.
    • androidDev shell: Android platforms 34+35 / build-tools 34.0.0+35.0.0 (matching the gradle configs), NDK 28.0.13004108 (the exact NDK the darksoil shell shipped, so produced .so files are unchanged), cargo-ndk, jdk17, and HOST_CC/CXX/AR exports.
  • Plan document for the full migration (Part 1: hc 0.7 bump; Part 2: unified plugin + @holochain/client 0.21 direct Tauri-IPC transport).

Verified

  • cargo check --features holochain_bundled clean on the rev pin.
  • flake.lock contains no darksoil inputs.
  • Default shell: holochain 0.6.1-rc.7, rust 1.89.0, node 22, kitsune2-bootstrap-srv, wasm-opt on PATH.
  • androidDev shell: NDK 28.0.13004108, platforms android-34/android-35, cargo-ndk 4.1.2, jdk 17.

Not verified (needs an interactive check)

  • Webview rendering under the nix webkit 2.52 (npm run start:desktop in the new shell). The EGL shellHook is verbatim from the volla-cloud-services commit (988835a) verified this morning, but volla's desktop app itself hasn't been launched from the new shell. WEBKIT_DISABLE_DMABUF_RENDERER=1 was left in package.json pending that check — it may now be removable.

zippy added 3 commits August 13, 2026 11:49
darksoil-studio/tauri-plugin-holochain has had availability problems
(the repo 404'd during a flake update on 2026-08-13). Pin the Cargo
dependency to the exact rev already in Cargo.lock so a branch deletion
or force-push can't break builds; a local clone of the repo serves as
the fallback if the repo itself disappears (see README note).

Verified: cargo check --features holochain_bundled clean on the pin.
The dev shells came from darksoil-studio/tauri-plugin-holochain, whose
availability has been unreliable (the input 404'd during a flake update
on 2026-08-13), and which pinned a stale webkitgtk 2.42 via its
webkitnixpkgs input.

Compose the environment locally instead, from holonix main-0.6 and its
nixpkgs (same shape as holochain/android-service-runtime and
HelloVolla/volla-cloud-services):

- Rust toolchain from a new rust-toolchain.toml via rust-overlay:
  1.89.0 (matching what the release workflows already install) with the
  Android + wasm32 target list, so nix, rustup, and CI users stay in
  sync.
- Android SDK/NDK from nixpkgs androidenv in the androidDev shell:
  platforms 34+35 and build-tools 34.0.0/35.0.0 to match the gradle
  configs (compileSdk 35, targetSdk 34), NDK 28.0.13004108 — the exact
  NDK the darksoil shell shipped, so produced .so files are unchanged.
- Tauri Linux desktop libs from holonix's nixpkgs: webkitgtk 2.52
  instead of the 2.42 pin. webkitgtk >= 2.44 needs a working EGL display
  on non-NixOS hosts, so the shellHook supplies an EGL vendor list (host
  drivers first, nixpkgs Mesa as fallback) plus GIO TLS modules and GTK
  schema paths.
- HOST_CC/CXX/AR exports in the androidDev shell so host-targeted units
  (build scripts, proc-macros) keep the host toolchain under cargo ndk.

Verified: flake.lock has no darksoil inputs; default shell provides
holochain 0.6.1-rc.7, rust 1.89.0, node 22, kitsune2-bootstrap-srv,
wasm-opt; androidDev shell provides NDK 28.0.13004108, platforms 34/35,
cargo-ndk 4.1.2, jdk 17.
@zippy zippy changed the title De-risk the darksoil plugin dependency (Part 0 of the unified-plugin migration) De-risk the tauri-plugin-holochain dependency (Part 0 of the unified-plugin migration) Aug 13, 2026
@zippy
zippy requested a review from Amirhesp August 13, 2026 16:23
zippy added 2 commits August 13, 2026 12:26
The darksoil dev shell exported
CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUSTFLAGS='--cfg getrandom_backend="custom"'
which the self-contained shell dropped, so the zome wasm build died on
getrandom 0.3 (it refuses to compile for wasm32-unknown-unknown without
a chosen backend). Restore the export in the shared shellHook.

Verified: npm run build:zomes clean in the new shell.
@Amirhesp

Amirhesp commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

@zippy Thank you for these changes, I can confirm that the webview rendering under the nix webkit 2.52 (npm run start:desktop in the new shell) works!

@Amirhesp
Amirhesp merged commit 3ad4188 into develop Aug 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants