fix build step:
This commit is contained in:
18
default.nix
18
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
|
||||
|
||||
Reference in New Issue
Block a user