Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Aug 30, 2024
1 parent e36324a commit c833afe
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 62 deletions.
94 changes: 47 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 16 additions & 10 deletions crates/hc-pilot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,37 @@
(self.lib.cleanTauriSource { inherit lib; }) (craneLib.path ../../.);
doCheck = false;
buildInputs = inputs.hc-infra.outputs.lib.holochainAppDeps.buildInputs {
inherit pkgs lib;
inherit lib;
pkgs = inputs'.webkitgtknixpkgs.legacyPackages;
} ++ self.lib.tauriAppDeps.buildInputs {
inherit lib;
pkgs = inputs'.webkitgtknixpkgs.legacyPackages;
};
nativeBuildInputs = (self.lib.tauriAppDeps.nativeBuildInputs {

inherit lib;
pkgs = inputs'.webkitgtknixpkgs.legacyPackages;
}) ++ (inputs.hc-infra.outputs.lib.holochainAppDeps.nativeBuildInputs {
inherit pkgs lib;
inherit lib;
pkgs = inputs'.webkitgtknixpkgs.legacyPackages;
});

# TODO: remove this if possible
postPatch = ''
mkdir -p "$TMPDIR/nix-vendor"
cp -Lr "$cargoVendorDir" -T "$TMPDIR/nix-vendor"
sed -i "s|$cargoVendorDir|$TMPDIR/nix-vendor/|g" "$TMPDIR/nix-vendor/config.toml"
chmod -R +w "$TMPDIR/nix-vendor"
cargoVendorDir="$TMPDIR/nix-vendor"
'';
# postPatch = ''
# mkdir -p "$TMPDIR/nix-vendor"
# cp -Lr "$cargoVendorDir" -T "$TMPDIR/nix-vendor"
# sed -i "s|$cargoVendorDir|$TMPDIR/nix-vendor/|g" "$TMPDIR/nix-vendor/config.toml"
# chmod -R +w "$TMPDIR/nix-vendor"
# cargoVendorDir="$TMPDIR/nix-vendor"
# '';
};
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
pname = crate;
version = cargoToml.package.version;
});
in craneLib.buildPackage (commonArgs // {
pname = crate;
version = cargoToml.package.version;
inherit cargoArtifacts;
});
};
}
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
inputs = {
nixpkgs.follows = "holochain/nixpkgs";
webkitgtknixpkgs.url =
"github:nixos/nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e";
"github:nixos/nixpkgs/2230a20f2b5a14f2db3d7f13a2dc3c22517e790b";

versions.url = "github:holochain/holochain?dir=versions/0_3";

Expand Down Expand Up @@ -229,6 +229,7 @@

buildInputs =
# TODO: revert to this line when this bug is fixed: https://github.com/tauri-apps/tauri/issues/10626
# and this other bug as well: https://github.com/tauri-apps/tauri/issues/9304
# flake.lib.tauriAppDeps.buildInputs { inherit pkgs lib; };
flake.lib.tauriAppDeps.buildInputs {
inherit lib;
Expand All @@ -237,6 +238,7 @@

nativeBuildInputs =
# TODO: revert to this line when this bug is fixed: https://github.com/tauri-apps/tauri/issues/10626
# and this other bug as well: https://github.com/tauri-apps/tauri/issues/9304
# flake.lib.tauriAppDeps.nativeBuildInputs { inherit pkgs lib; };
flake.lib.tauriAppDeps.nativeBuildInputs {
inherit lib;
Expand Down

0 comments on commit c833afe

Please sign in to comment.