graphics/shell.nix

25 lines
497 B
Nix
Raw Normal View History

2025-02-19 23:08:31 +03:00
{ pkgs ? import <nixpkgs> {} }:
with pkgs; mkShell rec {
buildInputs = [
cargo
rustc
rust-analyzer
pkg-config
openimageio
wayland
libGL
libxkbcommon
egl-wayland
vulkan-loader
2025-03-23 23:06:27 +03:00
gtk4
gsettings-desktop-schemas
2025-02-19 23:08:31 +03:00
];
shellHook = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${lib.makeLibraryPath (buildInputs) }
2025-03-23 23:06:27 +03:00
export XDG_DATA_DIRS=${pkgs.gtk4}/share/gsettings-schemas/${pkgs.gtk4.name}:$XDG_DATA_DIRS
2025-02-19 23:08:31 +03:00
'';
WINIT_UNIX_BACKEND="wayland";
}