Skip to content

Commit

Permalink
Holochain v0.4 working
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Dec 19, 2024
1 parent fbf9e37 commit a9f7adb
Show file tree
Hide file tree
Showing 17 changed files with 327 additions and 366 deletions.
7 changes: 4 additions & 3 deletions crates/scaffold-holochain-runtime/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ inputs, self, ... }:
{ inputs, ... }:

{
perSystem = { inputs', self', pkgs, system, lib, ... }: {
Expand All @@ -13,8 +13,9 @@
crate = cargoToml.package.name;

commonArgs = {
src = (self.lib.cleanScaffoldingSource { inherit lib; })
(craneLib.path ../../.);
src = (inputs.tnesh-stack.outputs.lib.cleanScaffoldingSource {
inherit lib;
}) (craneLib.path ../../.);
doCheck = false;
buildInputs = self'.dependencies.tauriHapp.buildInputs;
nativeBuildInputs = self'.dependencies.tauriHapp.nativeBuildInputs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::path::PathBuf;
use tauri_plugin_holochain::{HolochainPluginConfig, HolochainExt, WANNetworkConfig, vec_to_locked};

const SIGNAL_URL: &'static str = "wss://sbd.holo.host";
const BOOTSTRAP_URL: &'static str = "https://bootstrap.holochain.org";
const BOOTSTRAP_URL: &'static str = "https://bootstrap.holo.host";

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
Expand Down
7 changes: 4 additions & 3 deletions crates/scaffold-tauri-happ/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ inputs, self, ... }:
{ inputs, ... }:

{
perSystem = { inputs', self', pkgs, system, lib, ... }: {
Expand All @@ -13,8 +13,9 @@
crate = cargoToml.package.name;

commonArgs = {
src = (self.lib.cleanScaffoldingSource { inherit lib; })
(craneLib.path ../../.);
src = (inputs.tnesh-stack.outputs.lib.cleanScaffoldingSource {
inherit lib;
}) (craneLib.path ../../.);
doCheck = false;
buildInputs = self'.dependencies.tauriHapp.buildInputs;
nativeBuildInputs = self'.dependencies.tauriHapp.nativeBuildInputs;
Expand Down
2 changes: 1 addition & 1 deletion crates/tauri-plugin-holochain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct HolochainPlugin<R: Runtime> {
}

fn happ_origin(app_id: &String) -> String {
if cfg!(target_os = "windows") {
if cfg!(any(target_os = "windows", target_os = "android")) {
format!("http://happ.{app_id}")
} else {
format!("happ://{app_id}")
Expand Down
Loading

0 comments on commit a9f7adb

Please sign in to comment.