Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Mar 5, 2024
1 parent 546c3c6 commit 3f647f7
Show file tree
Hide file tree
Showing 11 changed files with 8,486 additions and 1,246 deletions.
540 changes: 527 additions & 13 deletions flake.lock

Large diffs are not rendered by default.

20 changes: 18 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
filterDnas = filterByHolochainPackageType "dna";
filterHapps = filterByHolochainPackageType "happ";

rustZome = { cratePath, holochain, workspacePath, excludedCrates ? [] }:
rustZome = { cargoTomlPath, holochain, workspacePath, excludedCrates ? [] }:
let
system = holochain.devShells.holonix.system;
pkgs = import inputs.nixpkgs {
Expand All @@ -50,8 +50,24 @@

in
pkgs.callPackage ./nix/zome.nix {
inherit craneLib cratePath excludedCrates workspacePath;
inherit craneLib cargoTomlPath excludedCrates workspacePath;
};
sweettest = { holochain, dna, workspacePath, cargoTomlPath }:
let
system = holochain.devShells.holonix.system;
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ (import inputs.rust-overlay) ];
};
rustToolchain = pkgs.rust-bin.stable."1.75.0".minimal.override {
# Set the build targets supported by the toolchain,
# wasm32-unknown-unknown is required for trunk.
targets = [ "wasm32-unknown-unknown" ];
};
craneLib = inputs.crane.lib.${system}.overrideToolchain rustToolchain;
in pkgs.callPackage ./nix/sweettest.nix {
inherit holochain dna craneLib workspacePath cargoTomlPath;
};
dna = { holochain, dnaManifest, zomes }:
let
system = holochain.devShells.holonix.system;
Expand Down
Loading

0 comments on commit 3f647f7

Please sign in to comment.