I'm on NixOS + Wayland (hyprland).
\nHow to configure the backend? (tried SLINT_BACKEND=winit
but same result)
Slint will dynamically open the wayland libraries, it will try to open libwayland-client.so.0
or libwayland-client.so
. Are those accessible in your Nix environment?
Error initializing winit event loop
#4146
-
Hi. I cloned the template, replaced placeholders and ran
I'm on NixOS + Wayland (hyprland). How to configure the backend? (tried |
Beta Was this translation helpful? Give feedback.
-
Slint will dynamically open the wayland libraries, it will try to open |
Beta Was this translation helpful? Give feedback.
-
For fellow nix newbies like me, this is where it goes in my devShells.default = mkShell {
buildInputs = [
openssl
pkg-config
rust-bin.beta.latest.default
];
packages = [ pkgs.bashInteractive ];
# TODO: Read on shellHooks
shellHook = ''
# alias ls=eza
# alias find=fd
'';
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${ with pkgs; lib.makeLibraryPath [
wayland
libxkbcommon
fontconfig
] }";
}; |
Beta Was this translation helpful? Give feedback.
-
a recent update: I require # build
inherit (pkgs)
cargo
rustc
pkg-config
libGL
libxkbcommon
fontconfig
wayland
;
inherit (pkgs.qt5) qtwayland;
# dev
inherit (pkgs)
rust-analyzer
clippy
rustfmt
slint-lsp
; also, to any passerby who will hear it: LD_LIBRARY_PATH is a really bad solution in nix, generally considered an antipattern, and unnecessarily verbose to boot.. just putting this stuff into |
Beta Was this translation helpful? Give feedback.
Slint will dynamically open the wayland libraries, it will try to open
libwayland-client.so.0
orlibwayland-client.so
. Are those accessible in your Nix environment?