Update flake.nix

This commit is contained in:
Adrian Gunnar Lauterer 2024-09-08 01:08:58 +02:00
parent 2abbdb1475
commit 366ee06c77
1 changed files with 13 additions and 6 deletions

View File

@ -31,14 +31,21 @@
postInstall = ''
mkdir -p $out/share/ozai_webui/static
mkdir -p $out/share/ozai_webui/templates
mkdir -p $out/lib/python3.11/site-packages/ozai_webui/templates
mkdir -p $out/lib/python3.11/site-packages/ozai_webui/static
mkdir -p $out/lib/python3.11/site-packages/templates
mkdir -p $out/lib/python3.11/site-packages/static
mkdir -p $out/lib/python3.11/templates
mkdir -p $out/lib/python3.11/static
install -Dm444 ${src}/static/* $out/share/ozai_webui/static/
install -Dm444 ${src}/templates/* $out/share/ozai_webui/templates/
cp -r $src/templates $out/lib/python3.11/site-packages/ozai_webui/templates
cp -r $src/templates $out/lib/python3.11/site-packages/templates
cp -r $src/templates $out/lib/python3.11/templates
cp -r $src/static $out/lib/python3.11/site-packages/ozai_webui/static
cp -r $src/static $out/lib/python3.11/site-packages/static
cp -r $src/static $out/lib/python3.11/static
cp -r $src/templates $out/lib/python3.11/site-packages/ozai_webui/templates
cp -r $src/templates $out/lib/python3.11/site-packages/templates
cp -r $src/templates $out/lib/python3.11/templates
cp -r $src/static $out/lib/python3.11/site-packages/ozai_webui/static
cp -r $src/static $out/lib/python3.11/site-packages/static
cp -r $src/static $out/lib/python3.11/static
chmod -R 444 $out/lib/python3.11
'';
};