-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
32 lines (29 loc) · 1.35 KB
/
shell.nix
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
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
python311
python311Packages.pandas
python311Packages.pyarrow
python311Packages.termcolor
python311Packages.biplist
python311Packages.textwrap3
python311Packages.tkinter
python311Packages.psutil
sqlite
];
shellHook = ''
export PYTHONPATH="${pkgs.python311Packages.pandas}/lib/python3.11/site-packages:$PYTHONPATH"
export PYTHONPATH="${pkgs.python311Packages.pyarrow}/lib/python3.11/site-packages:$PYTHONPATH"
export PYTHONPATH="${pkgs.python311Packages.termcolor}/lib/python3.11/site-packages:$PYTHONPATH"
export PYTHONPATH="${pkgs.python311Packages.biplist}/lib/python3.11/site-packages:$PYTHONPATH"
export PYTHONPATH="${pkgs.python311Packages.textwrap3}/lib/python3.11/site-packages:$PYTHONPATH"
export PYTHONPATH="${pkgs.python311Packages.tkinter}/lib/python3.11/site-packages:$PYTHONPATH"
export PYTHONPATH="${pkgs.python311Packages.psutil}/lib/python3.11/site-packages:$PYTHONPATH"
export PATH="${pkgs.sqlite}/bin:$PATH"
echo "Maco development environment loaded"
echo "Python packages available: pandas, pyarrow, termcolor, biplist, textwrap3, tkinter, psutil"
echo "SQLite is also available in the PATH"
echo "To run the project, use the following command:"
echo " python src/maco/maco.py"
'';
}