build: seperate linux-specific deps
This commit is contained in:
parent
754dd6126d
commit
94c905db38
1 changed files with 19 additions and 16 deletions
17
flake.nix
17
flake.nix
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue