From 82f03234cfe42c6f4b0f95ba27ce6d2d73462bcd Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 30 Nov 2024 23:11:25 +0300 Subject: [PATCH] Bottles: Make a wrapper for SDL_VIDEODRIVER. --- package/bottles/default.nix | 10 ++++++++++ package/default.nix | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 package/bottles/default.nix diff --git a/package/bottles/default.nix b/package/bottles/default.nix new file mode 100644 index 0000000..1a3c7ed --- /dev/null +++ b/package/bottles/default.nix @@ -0,0 +1,10 @@ +{ + pkgs, + ... +}: { + file = pkgs.writeShellScriptBin "bottles" '' + #! ${pkgs.bash}/bin/bash + export SDL_VIDEODRIVER= + exec ${pkgs.bottles}/bin/bottles "$@" + ''; +} diff --git a/package/default.nix b/package/default.nix index 73c7229..782e160 100644 --- a/package/default.nix +++ b/package/default.nix @@ -121,7 +121,6 @@ ]); gaming = with pkgs; [ - bottles # GUI for Wine. dxvk # Directx to Vulkan. gamescope # Compositor for Steam. mangohud # Realtime stats overlay. @@ -130,6 +129,8 @@ steam-run # Run games outside of Steam. vkd3d # Directx to Vulkan. wine64 # Run Windows software on Linux. + + (import ./bottles args).file # GUI for Wine. ]; creative = with pkgs; [