Skip to content

Commit

Permalink
Fixed align cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Sep 27, 2024
1 parent c83b066 commit 15d1a44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ rec {
deterministicCraneLib = let
rustToolchain =
inputs.holonix.outputs.packages."x86_64-linux".rust;
in (inputs.crane.mkLib pkgs).overrideToolchain rustToolchain;
in (inputs.crane.mkLib inputs.nixpkgs.outputs.legacyPackages.${
"x86_64-linux"
}).overrideToolchain rustToolchain;

craneLib = (inputs.crane.mkLib pkgs).overrideToolchain
inputs'.holonix.packages.rust;
Expand Down
5 changes: 2 additions & 3 deletions nix/zome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ let

wasm = deterministicCraneLib.buildPackage
(buildPackageCommonArgs // { inherit cargoArtifacts; });
in runCommandLocal "${crate}-deterministic" {
meta = { holochainPackageType = "zome"; };
} " cp ${wasm}/lib/${crate}.wasm $out \n";
in runCommandLocal "${crate}-deterministic" { }
" cp ${wasm}/lib/${crate}.wasm $out \n";

debug = runCommandNoCC "${crate}-debug" { } ''
cp ${wasm}/lib/${crate}.wasm $out
Expand Down

0 comments on commit 15d1a44

Please sign in to comment.