-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
37 lines (32 loc) · 910 Bytes
/
shell.nix
File metadata and controls
37 lines (32 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{pkgs ? import <nixpkgs> {}}:
with pkgs;
mkShell {
buildInputs = [
python311Packages.virtualenv
python311Packages.nltk
python311Packages.pyspellchecker
python311Packages.langdetect
python311Packages.imbalanced-learn
python311Packages.gensim
python311Packages.beautifulsoup4
python311Packages.sentence-transformers
python311Packages.seaborn
python311Packages.wikitextparser
python311Packages.wikipedia
python311Packages.qdrant-client
python311Packages.python-dotenv
python311Packages.flask
python311
ollama
python311Packages.ollama
];
shellHook = ''
if ! [ -e .venv ]; then
python3 -m venv .venv
pip install python-frontmatter
fi
source .venv/bin/activate
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
ollama serve > /dev/null 2>&1 &
'';
}