Repository navigation
De-risk the tauri-plugin-holochain dependency (Part 0 of the unified-plugin migration) - #205
Merged
Merged
Conversation
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.
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.
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
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Volla's desktop builds and dev shells both depend on
darksoil-studio/tauri-plugin-holochain. The full migration off it (toholochain/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
387bf70, the commit already in Cargo.lock) instead ofbranch = "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).flake.nixno longer pulls the darksoil dev-shell flake (same shape asholochain/android-service-runtimeandvolla-cloud-services):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.androidDevshell: 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.sofiles are unchanged), cargo-ndk, jdk17, and HOST_CC/CXX/AR exports.@holochain/client0.21 direct Tauri-IPC transport).Verified
cargo check --features holochain_bundledclean on the rev pin.flake.lockcontains no darksoil inputs.kitsune2-bootstrap-srv,wasm-opton PATH.androidDevshell: NDK 28.0.13004108, platforms android-34/android-35, cargo-ndk 4.1.2, jdk 17.Not verified (needs an interactive check)
npm run start:desktopin 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=1was left inpackage.jsonpending that check — it may now be removable.