Skip to content

Commit

Permalink
Attempt fix vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed May 28, 2024
1 parent 1fc0571 commit 94295b6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@
holochainAppDeps.nativeBuildInputs { inherit pkgs lib; };
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS =
" -Clink-arg=-fuse-ld=mold";
# CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS =
# " -Clink-arg=-fuse-ld=mold -Clink-arg=-fuse-ld=mold";
CARGO_PROFILE = if debug then "debug" else "release";
};

Expand Down
14 changes: 7 additions & 7 deletions nix/fixtures/module-repo/flake.lock

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

5 changes: 4 additions & 1 deletion nix/reference-happ/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ resolver = "2"
hdi = "0.4.1-rc"
hdk = "0.3.1-rc"
holochain = "0.3.1-rc"
serde = "1"
serde = "1.0.193"

[profile.dev]
opt-level = "z"

[profile.release]
opt-level = "z"
12 changes: 9 additions & 3 deletions nix/zome.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ runCommandLocal, runCommandNoCC, binaryen, deterministicCraneLib, craneLib
, workspacePath, crateCargoToml, zomeCargoDeps }:
{ pkgs, runCommandLocal, runCommandNoCC, binaryen, deterministicCraneLib
, craneLib, workspacePath, crateCargoToml, zomeCargoDeps }:

let
cargoToml = builtins.fromTOML (builtins.readFile crateCargoToml);
Expand All @@ -17,9 +17,15 @@ let
cargoToml = crateCargoToml;
};

cargoVendorDir = craneLib.vendorMultipleCargoDeps {
cargoLockList =
[ ./reference-happ/Cargo.lock (workspacePath + /Cargo.lock) ];
};

wasm = craneLib.buildPackage (commonArgs // {
cargoArtifacts = (zomeCargoDeps { inherit craneLib; }).cargoArtifacts;
cargoVendorDir = (zomeCargoDeps { inherit craneLib; }).cargoVendorDir;
inherit cargoVendorDir;
# = (zomeCargoDeps { inherit craneLib; }).cargoVendorDir;
});

deterministicWasm = let
Expand Down

0 comments on commit 94295b6

Please sign in to comment.