sys: add new dependencies to my local env and to Cargo
This commit is contained in:
1 parent
51758c21bf
commit
f4217ade7b
3 files changed
+3293
-18
No files matched your search
Generated
+3255
-17
File diff suppressed because it is too large.
Load diff
@@ -13,6 +13,12 @@ zip = "0.6"
|
||||
dirs = "5.0"
|
||||
which = "6.0"
|
||||
serde_json = "1.0"
|
||||
chrono = "0.4"
|
||||
rfd = "0.14"
|
||||
|
||||
# GUI - simplified for better compatibility
|
||||
eframe = { version = "0.27", features = ["default"] }
|
||||
egui = "0.27"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3.8"
|
||||
|
||||
@@ -1,11 +1,42 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
buildInputs = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
clippy
|
||||
rust-analyzer
|
||||
pkg-config
|
||||
|
||||
# Wayland (опционально, если оставляете wayland backend)
|
||||
wayland
|
||||
wayland-protocols
|
||||
libxkbcommon
|
||||
|
||||
# X11 и OpenGL (необходимо для glow backend)
|
||||
xorg.libX11
|
||||
xorg.libXrandr
|
||||
xorg.libXinerama
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
mesa
|
||||
libglvnd
|
||||
|
||||
# Дополнительно
|
||||
fontconfig
|
||||
noto-fonts-color-emoji
|
||||
];
|
||||
|
||||
# Правильная настройка LD_LIBRARY_PATH
|
||||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
|
||||
pkgs.wayland
|
||||
pkgs.libxkbcommon
|
||||
pkgs.xorg.libX11
|
||||
pkgs.mesa
|
||||
pkgs.libglvnd
|
||||
];
|
||||
|
||||
# (Необязательно) принудительно использовать X11 backend
|
||||
# WINIT_UNIX_BACKEND = "x11";
|
||||
}
|
||||
Reference in new issue
Block a user