fix build step:

This commit is contained in:
UGA Innovation Factory
2025-12-18 18:49:56 -05:00
parent 393baa6365
commit 9d972effe0

View File

@@ -31,13 +31,25 @@ let
# Use the directory from this repository
src = ./usda-vision;
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.makeWrapper pkgs.rsync ];
# Don't run these phases, we'll do everything in installPhase
dontBuild = true;
dontConfigure = true;
installPhase = ''
mkdir -p $out/opt/usda-vision
# Copy all application files
cp -r $src/. $out/opt/usda-vision/
# Debug: show what's in source
echo "Source directory contents:"
ls -la $src/ || true
# Copy all application files using rsync to preserve everything
${pkgs.rsync}/bin/rsync -av --exclude='.git' $src/ $out/opt/usda-vision/
# Verify files were copied
echo "Destination directory contents:"
ls -la $out/opt/usda-vision/ || true
# Remove any existing .env files
rm -f $out/opt/usda-vision/management-dashboard-web-app/.env