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
10
flake.nix
10
flake.nix
|
|
@ -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
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue