-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
80 lines (68 loc) · 1.55 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
let pkgs = import <nixpkgs> { };
in pkgs.mkShell {
buildInputs = with pkgs; [
python312
python312Packages.pypandoc
#
uv # Add uv to the build inputs
stdenv.cc.cc
zlib
fuse3
# icu
# nss
# openssl
# curl
figlet
# expat
# xorg.libX11
# vulkan-headers
# vulkan-loader
# vulkan-tools
imagemagick
texliveBasic
texliveSmall
texliveMedium
texliveTeTeX
];
packages = with pkgs;
[
# figlet
# python3
# gcc
# grpc
# python312Packages.qdrant-client
# libstdcxx5
# python311Packages.pip
];
shellHook = ''
export LD_LIBRARY_PATH=${
pkgs.lib.makeLibraryPath [
pkgs.stdenv.cc.cc
pkgs.zlib
pkgs.libGL
pkgs.glib
pkgs.fuse3
pkgs.icu
pkgs.nss
pkgs.openssl
pkgs.curl
pkgs.expat
pkgs.xorg.libX11
pkgs.vulkan-headers
pkgs.vulkan-loader
pkgs.vulkan-tools
]
}:$LD_LIBRARY_PATH
figlet RattaAI
if [ ! -d ".venv" ]; then
uv venv .venv
fi
# python -m venv .venv
source .venv/bin/activate
alias pip="uv pip"
uv pip install -r requirements.txt
# nix shell github:GuillaumeDesforges/fix-python
# fix-python --venv .venv --libs .nix/libs.nix
figlet RattaAI
'';
}