Compile themes in build phase in Bookwyrm package

This commit is contained in:
Reinout Meliesie 2025-03-09 17:41:27 +01:00
parent 4e461aae52
commit dba796c5dd
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -27,7 +27,14 @@ mkDerivation {
buildPhase = ''
runHook preBuild
ls -lAh /build
mkdir -p /lib/python3.11/site-packages
ln -s ${django}/lib/python3.11/site-packages/* /lib/python3.11/site-packages/
ln -s ${libsass}/lib/python3.11/site-packages/* /lib/python3.11/site-packages/
export PYTHONPATH=/lib/python3.11/site-packages
${python311}/bin/python manage.py compile_themes
runHook postBuild
'' ;