rerun: move wasm app build to preBuild hook instead of configurePhase

This commit is contained in:
Olivier LDff
2025-01-24 10:11:45 +01:00
parent da83b17f8b
commit 4d0503e2af
+1 -5
View File
@@ -57,17 +57,13 @@ rustPlatform.buildRustPackage rec {
# The command is taken from https://github.com/rerun-io/rerun/blob/dd025f1384f9944d785d0fb75ca4ca1cd1792f17/pixi.toml#L198C72-L198C187
# Note that cargoBuildFeatures reference what buildFeatures is set to in stdenv.mkDerivation,
# so that user can easily create an overlay to set cargoBuildFeatures to what he needs
configurePhase = ''
runHook preConfigure
preBuild = ''
if [[ " $cargoBuildFeatures " == *" web_viewer "* ]]; then
echo "Building with web_viewer feature..."
cargo run -p re_dev_tools -- build-web-viewer --no-default-features --features analytics,grpc,map_view --release -g
else
echo "web_viewer feature not enabled, skipping web viewer build."
fi
runHook postConfigure
'';
nativeBuildInputs = [