diff --git a/flake.nix b/flake.nix index 5e18c47..d770a4e 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ''; };