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 let
overlays = [ (import rust-overlay) ]; overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; }; pkgs = import nixpkgs { inherit system overlays; };
runtimeLibs = with pkgs; [ runtimeLibs =
with pkgs;
[
libx11 libx11
libxcursor libxcursor
libxi libxi
libxkbcommon libxkbcommon
libxcb libxcb
wayland
vulkan-loader vulkan-loader
glfw glfw
]; ]
++ lib.optional pkgs.stdenv.isLinux wayland;
takeScreenshots = pkgs.writeShellApplication { takeScreenshots = pkgs.writeShellApplication {
name = "take-screenshots"; name = "take-screenshots";
@ -135,6 +137,8 @@
]; ];
}) })
pkg-config pkg-config
]
++ lib.optionals pkgs.stdenv.isLinux [
alsa-lib.dev alsa-lib.dev
udev.dev udev.dev
] ]