build: seperate linux-specific deps

This commit is contained in:
electria 2026-07-31 14:19:53 -07:00
commit 94c905db38
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -19,21 +19,24 @@
cargoToml = fromTOML (builtins.readFile ./Cargo.toml); cargoToml = fromTOML (builtins.readFile ./Cargo.toml);
name = cargoToml.package.name; name = cargoToml.package.name;
dlDeps = with pkgs; [ dlDeps =
# libdbus, for rfd with pkgs;
dbus.lib [
# needed for both x11 and wayland # needed for both x11 and wayland
libxkbcommon libxkbcommon
libGL libGL
vulkan-loader
wayland
libx11 libx11
libxcursor libxcursor
libxi libxi
libxcb libxcb
]
++ lib.optionals stdenv.hostPlatform.isLinux [
# libdbus, for rfd
dbus.lib
vulkan-loader
wayland
]; ];
commonArgs = { commonArgs = {