diff options
author | Atemu <atemu.main@gmail.com> | 2024-03-14 23:54:02 +0100 |
---|---|---|
committer | Atemu <atemu.main@gmail.com> | 2024-03-16 17:59:27 +0100 |
commit | 2b619c23146b7b791ed25a174add5cc8d99c8654 (patch) | |
tree | f01f879e2a0211f0a3e145627c764dc8fe13d306 /nixos | |
parent | 1b42f2ffbf5c12044b9792a77f5828f6877ccae1 (diff) |
nixos/steam: use steamcompattool output for extraCompatPackages
This sets a standard for Steam compat tools in NixOS where they must have the compat tool in a special steamcompattool output. proton-ge-bin was adjusted to conform with it.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/steam.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix index 31803f061dce2..8fc0f35c0dced 100644 --- a/nixos/modules/programs/steam.nix +++ b/nixos/modules/programs/steam.nix @@ -44,8 +44,8 @@ in { ''; apply = steam: steam.override (prev: { extraEnv = (lib.optionalAttrs (cfg.extraCompatPackages != [ ]) { - STEAM_EXTRA_COMPAT_TOOLS_PATHS = makeBinPath cfg.extraCompatPackages; - }) // (prev.extraEnv or {}); + STEAM_EXTRA_COMPAT_TOOLS_PATHS = makeSearchPathOutput "steamcompattool" "" cfg.extraCompatPackages; + }) // (prev.extraEnv or {}); extraLibraries = pkgs: let prevLibs = if prev ? extraLibraries then prev.extraLibraries pkgs else [ ]; additionalLibs = with config.hardware.opengl; @@ -77,7 +77,9 @@ in { description = lib.mdDoc '' Extra packages to be used as compatibility tools for Steam on Linux. Packages will be included in the `STEAM_EXTRA_COMPAT_TOOLS_PATHS` environmental variable. For more information see - <https://github.com/ValveSoftware/steam-for-linux/issues/6310">. + https://github.com/ValveSoftware/steam-for-linux/issues/6310. + + These packages must be Steam compatibility tools that have a `steamcompattool` output. ''; }; |