Files
open-webui-flake/shell.nix
2025-10-17 12:36:41 +03:00

31 lines
473 B
Nix
Executable File

{pkgs}: {
default = pkgs.mkShell {
buildInputs = with pkgs;
[
python311
]
++ (with pkgs.python311Packages; [
grpcio
]);
shellHook =
/*
bash
*/
''
if [ ! -d ./venv ]; then
python -m venv ./venv
source ./venv/bin/activate
pip install -U pip
pip install open-webui
deactivate
fi
source ./venv/bin/activate
'';
};
}