Skip to content

steamPackages.fhs: load vendored steam libraries - #120829

Closed
jonringer wants to merge 1 commit into
NixOS:masterfrom
jonringer:fix-steam-play
Closed

jonringer wants to merge 1 commit into
NixOS:masterfrom
jonringer:fix-steam-play

Conversation

@jonringer

@jonringer jonringer commented Apr 27, 2021 •

Copy link
Copy Markdown
Contributor
Motivation for this change

closes #86257

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@github-actions github-actions Bot added the 6.topic: steam Steam game store/launcher (store.steampowered.com) label Apr 27, 2021
@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 27, 2021
@r-rmcgibbo

Copy link
Copy Markdown

Result of nixpkgs-review pr 120829 at 8579814 run on x86_64-linux 1

1 package skipped due to time constraints:
  • lutris
5 packages built successfully:
  • kodiPackages.steam-launcher
  • protontricks
  • steam
  • steam-run
  • steamcmd

Comment thread pkgs/games/steam/fhsenv.nix Resolved
@jansol

jansol commented Jul 13, 2021

Copy link
Copy Markdown
Contributor

What's holding this up?

@jonringer

Copy link
Copy Markdown
Contributor Author

people testing it and confirming that it solves the use case

Comment on lines +51 to +53
# allows for steam play and other valve utilities to work
++ lib.optionals stdenv.is64bit [ "\${HOME}/.steam/steam/ubuntu12_64" ]
++ [ "\${HOME}/.steam/steam/ubuntu12_32" ];

@smcv smcv Sep 8, 2021 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not meant to be necessary to add these directories to the LD_LIBRARY_PATH before invoking Steam, and it might even break some games if you do. The parts of Steam that need these directories in their search path are meant to edit the LD_LIBRARY_PATH themselves. For example, steam.sh adds ubuntu12_32 and ubuntu12_32/panorama to the LD_LIBRARY_PATH for Steam itself (look for prepend our lib path in steam.sh), but then Steam removes them from the LD_LIBRARY_PATH that it presents to games, so that games are not all forced to use Steam's bundled version of SDL2.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I'm trying to come up with a ld cache solution... just can only work on this in my free time :/

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/fix-steam-black-library-store/14965/3

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/fix-steam-black-library-store/14965/4

@anund anund mentioned this pull request Sep 11, 2021
3 tasks done
@anund

anund commented Sep 11, 2021 •

Copy link
Copy Markdown
Contributor

Short term this will help get steam ui launching without black screen again: ValveSoftware/steam-runtime#462 (comment)

@SuperSandro2000

Copy link
Copy Markdown
Member

ping @jonringer

@stale stale Bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 31, 2022
@SuperSandro2000

Copy link
Copy Markdown
Member

this got fixed a longer time ago already and now is the default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: steam Steam game store/launcher (store.steampowered.com) 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[steam] Steam Remote Play Together no longer works; libtier0_s.so missing

7 participants