···2525 inherit buildFHSEnv;2626 };2727 steam-fhsenv-small = steam-fhsenv.override { withGameSpecificLibraries = false; };2828+2929+ # This has to exist so Hydra tries to build all of Steam's dependencies.3030+ # FIXME: Maybe we should expose it as something more generic?3131+ steam-fhsenv-without-steam = steam-fhsenv.override { steam = null; };3232+2833 steamcmd = callPackage ./steamcmd.nix { };2934 };3035 keep = self: { };
+13-7
pkgs/games/steam/fhsenv.nix
···6262 name = "steam";63636464 targetPkgs = pkgs: with pkgs; [6565- steamPackages.steam6565+ steam6666 # License agreement6767 gnome.zenity6868 ] ++ commonTargetPkgs pkgs;···207207 libpsl208208 nghttp2.lib209209 rtmpdump210210- ] ++ steamPackages.steam-runtime-wrapped.overridePkgs210210+ ] ++ steam-runtime-wrapped.overridePkgs211211 ++ extraLibraries pkgs;212212213213- extraInstallCommands = ''213213+ extraInstallCommands = lib.optionalString (steam != null) ''214214 mkdir -p $out/share/applications215215 ln -s ${steam}/share/icons $out/share216216 ln -s ${steam}/share/pixmaps $out/share···262262 exec steam ${extraArgs} "$@"263263 '';264264265265- meta = steam.meta // lib.optionalAttrs (!withGameSpecificLibraries) {266266- description = steam.meta.description + " (without game specific libraries)";267267- };265265+ meta =266266+ if steam != null267267+ then268268+ steam.meta // lib.optionalAttrs (!withGameSpecificLibraries) {269269+ description = steam.meta.description + " (without game specific libraries)";270270+ }271271+ else {272272+ description = "Steam dependencies (dummy package, do not use)";273273+ };268274269275 # allows for some gui applications to share IPC270276 # this fixes certain issues where they don't render correctly···304298 exec -- "$run" "$@"305299 '';306300307307- meta = steam.meta // {301301+ meta = (steam.meta or {}) // {308302 description = "Run commands in the same FHS environment that is used for Steam";309303 name = "steam-run";310304 };