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);
name = cargoToml.package.name;
dlDeps = with pkgs; [
# libdbus, for rfd
dbus.lib
dlDeps =
with pkgs;
[
# needed for both x11 and wayland
libxkbcommon
libGL
vulkan-loader
wayland
libx11
libxcursor
libxi
libxcb
]
++ lib.optionals stdenv.hostPlatform.isLinux [
# libdbus, for rfd
dbus.lib
vulkan-loader
wayland
];
commonArgs = {