diff --git a/pkgs/by-name/sd/sdl2-compat/package.nix b/pkgs/by-name/sd/sdl2-compat/package.nix index a5d373c12d89..e8890a344cfa 100644 --- a/pkgs/by-name/sd/sdl2-compat/package.nix +++ b/pkgs/by-name/sd/sdl2-compat/package.nix @@ -20,6 +20,8 @@ SDL_compat, ffmpeg, qemu, + + x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows, }: let # tray support on sdl3 pulls in gtk3, which is quite an expensive dependency. @@ -44,8 +46,8 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ sdl3' - libX11 - ]; + ] + ++ lib.optional x11Support libX11; checkInputs = [ libGL ];