From 9d972effe03813f69db93cfd29a718ba290639a0 Mon Sep 17 00:00:00 2001 From: UGA Innovation Factory Date: Thu, 18 Dec 2025 18:49:56 -0500 Subject: [PATCH] fix build step: --- default.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index a40bc60..f45123e 100644 --- a/default.nix +++ b/default.nix @@ -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