fix(flake): guard linux-only deps behind stdenv.isLinux
wayland, alsa-lib, and udev are Linux-only — including them unconditionally breaks evaluation on darwin.
This commit is contained in:
parent
fb132aea2a
commit
725d770fa0
1 changed files with 14 additions and 10 deletions
24
flake.nix
24
flake.nix
|
|
@ -20,16 +20,18 @@
|
|||
let
|
||||
overlays = [ (import rust-overlay) ];
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
runtimeLibs = with pkgs; [
|
||||
libx11
|
||||
libxcursor
|
||||
libxi
|
||||
libxkbcommon
|
||||
libxcb
|
||||
wayland
|
||||
vulkan-loader
|
||||
glfw
|
||||
];
|
||||
runtimeLibs =
|
||||
with pkgs;
|
||||
[
|
||||
libx11
|
||||
libxcursor
|
||||
libxi
|
||||
libxkbcommon
|
||||
libxcb
|
||||
vulkan-loader
|
||||
glfw
|
||||
]
|
||||
++ lib.optional pkgs.stdenv.isLinux wayland;
|
||||
|
||||
takeScreenshots = pkgs.writeShellApplication {
|
||||
name = "take-screenshots";
|
||||
|
|
@ -135,6 +137,8 @@
|
|||
];
|
||||
})
|
||||
pkg-config
|
||||
]
|
||||
++ lib.optionals pkgs.stdenv.isLinux [
|
||||
alsa-lib.dev
|
||||
udev.dev
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue