Skip to content

Commit

Permalink
fix: update nix package deps build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Mar 9, 2024
1 parent 65d24fe commit 0f97065
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
});

Expand Down

0 comments on commit 0f97065

Please sign in to comment.