-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.nix
More file actions
67 lines (60 loc) · 1.3 KB
/
Copy pathshell.nix
File metadata and controls
67 lines (60 loc) · 1.3 KB
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
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
# Tauri native dependencies
pkg-config
dbus
openssl
glib
gtk3
libsoup_3
webkitgtk_4_1
xdotool
wtype
wl-clipboard
libappindicator
librsvg
libGL
libGLU
ffmpeg
grim
psmisc
# Core project languages and toolchains
cargo
rustc
gcc
gnumake
nodejs_22
(python311.withPackages (ps: with ps; [ tkinter ]))
portaudio
zlib
# Playwright driver
playwright-driver.browsers
];
shellHook = ''
# Environment variables for Playwright
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
# Add native libraries to LD_LIBRARY_PATH so Tauri, Cargo, and Python wheels can link against them
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath (with pkgs; [
openssl
glib
gtk3
libsoup_3
webkitgtk_4_1
libappindicator
dbus
portaudio
libGL
libGLU
zlib
stdenv.cc.cc.lib
])}:$LD_LIBRARY_PATH
echo "MIA Dev Env ready. Run './run.sh' to start."
if [[ "$PS1" != "" ]]; then
export SHELL=$(which zsh)
exec zsh
fi
'';
}