From 366ee06c77c57eb3be3263d937ead8dfebb43b78 Mon Sep 17 00:00:00 2001 From: Adrian Gunnar Lauterer Date: Sun, 8 Sep 2024 01:08:58 +0200 Subject: [PATCH] Update flake.nix --- flake.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) 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 ''; };