From 81aed34640deeb6ec79f35c611b09a0d55e731dd Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 26 Jul 2025 21:45:31 +0300 Subject: [PATCH] Fixed audio issues on nixos --- build.zig | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 0c3bec4..0b84192 100644 --- a/build.zig +++ b/build.zig @@ -22,7 +22,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, .platform = rlz.PlatformBackend.glfw, - .linux_display_backend = rlz.LinuxDisplayBackend.X11, + .linux_display_backend = rlz.LinuxDisplayBackend.Both, // See https://github.com/Not-Nik/raylib-zig/issues/219 // We can either have users download both, or maybe try disabling lld? diff --git a/flake.nix b/flake.nix index 3ac1538..bf2cb5a 100644 --- a/flake.nix +++ b/flake.nix @@ -15,9 +15,9 @@ ]; buildInputs = with pkgs; [ + alsa-lib xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr xorg.libXinerama # For x11 libxkbcommon wayland glfw-wayland wayland-scanner # For wayland - SDL ]; in {