From 0f97065ad5db13ba2b06ce58e179d90d5ccfa3f9 Mon Sep 17 00:00:00 2001 From: John Lewis Date: Sat, 9 Mar 2024 13:03:43 -0600 Subject: [PATCH] fix: update nix package deps build commands --- flake.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 30d70b8..4d74342 100644 --- a/flake.nix +++ b/flake.nix @@ -86,9 +86,13 @@ # Build *just* the cargo dependencies, so we can reuse # all of that work (e.g. via cachix) when running in CI site-server-deps = craneLib.buildDepsOnly (common_args // { + # if work is duplicated by the `server-site` package, update these + # commands from the logs of `cargo leptos build --release -vvv` buildPhaseCargoCommand = '' - cargo build -p site-server --profile release --locked - cargo build -p site-frontend --target=wasm32-unknown-unknown --profile wasm-release --locked + # build the server dependencies + cargo build --package=site-server --no-default-features --release + # build the frontend dependencies + cargo build --package=site-frontend --lib --target-dir=/build/source/target/front --target=wasm32-unknown-unknown --no-default-features --profile=wasm-release ''; });