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,22 +19,25 @@
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
libxkbcommon
libGL
# needed for both x11 and wayland libx11
libxkbcommon libxcursor
libGL libxi
vulkan-loader libxcb
]
++ lib.optionals stdenv.hostPlatform.isLinux [
# libdbus, for rfd
dbus.lib
wayland vulkan-loader
wayland
libx11 ];
libxcursor
libxi
libxcb
];
commonArgs = { commonArgs = {
# all that's needed for artifacts and checks # all that's needed for artifacts and checks