Include build phase artifacts in Bookwyrm package expression

This commit is contained in:
Reinout Meliesie 2025-03-11 16:07:29 +01:00
parent 1c16839be1
commit c0bef7fde0
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -118,10 +118,10 @@ mkDerivation {
export EMAIL_HOST_PASSWORD="" export EMAIL_HOST_PASSWORD=""
export SECRET_KEY="" export SECRET_KEY=""
rm -r bookwyrm/migrations/* # rm -r bookwyrm/migrations/*
touch bookwyrm/migrations/__init__.py # touch bookwyrm/migrations/__init__.py
${python311}/bin/python manage.py makemigrations # ${python311}/bin/python manage.py makemigrations
${python311}/bin/python manage.py compile_themes ${python311}/bin/python manage.py compile_themes
${python311}/bin/python manage.py collectstatic --no-input ${python311}/bin/python manage.py collectstatic --no-input
@ -145,12 +145,12 @@ mkDerivation {
# Python packages # Python packages
cp -r $src/bookwyrm $out/lib/python3.11/site-packages/ cp -r /build/source/bookwyrm $out/lib/python3.11/site-packages/
cp -r $src/celerywyrm $out/lib/python3.11/site-packages/ cp -r /build/source/celerywyrm $out/lib/python3.11/site-packages/
# Python scripts # Python scripts
cp $src/manage.py $out/lib/python3.11/ cp /build/source/manage.py $out/lib/python3.11/
# Static web files # Static web files