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);
|
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 = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue