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:
Harald Hoyer 2026-05-13 11:31:56 +02:00
parent fb132aea2a
commit 725d770fa0

View file

@ -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
]