diff options
author | Matthew Harm Bekkema <mbekkema97@gmail.com> | 2018-11-10 13:17:04 +1000 |
---|---|---|
committer | Silvan Mosberger <infinisil@icloud.com> | 2018-11-10 04:17:04 +0100 |
commit | 2a842a1386b81159801086e53032d0cf2f580968 (patch) | |
tree | eee9279a580cddabdb470fa45a2fe91022d94d55 /pkgs/games/steam | |
parent | c74e1769fa65356908057d85f3642946503db296 (diff) | |
download | nixpkgs-2a842a1386b81159801086e53032d0cf2f580968.tar nixpkgs-2a842a1386b81159801086e53032d0cf2f580968.tar.gz nixpkgs-2a842a1386b81159801086e53032d0cf2f580968.tar.bz2 nixpkgs-2a842a1386b81159801086e53032d0cf2f580968.tar.lz nixpkgs-2a842a1386b81159801086e53032d0cf2f580968.tar.xz nixpkgs-2a842a1386b81159801086e53032d0cf2f580968.tar.zst nixpkgs-2a842a1386b81159801086e53032d0cf2f580968.zip |
Workaround for issue #44254 (Steam cannot connect to friends network) (#44602)
* steam: Set TZ to detected timezone on startup Workaround for issue #44254 (Steam cannot connect to friends network)
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r-- | pkgs/games/steam/chrootenv.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix index 2762155d63c..c31b8b22216 100644 --- a/pkgs/games/steam/chrootenv.nix +++ b/pkgs/games/steam/chrootenv.nix @@ -180,6 +180,15 @@ in buildFHSUserEnv rec { ''; profile = '' + # Workaround for issue #44254 (Steam cannot connect to friends network) + # https://github.com/NixOS/nixpkgs/issues/44254 + if [ -z ''${TZ+x} ]; then + new_TZ="$(readlink -f /etc/localtime | grep -P -o '(?<=/zoneinfo/).*$')" + if [ $? -eq 0 ]; then + export TZ="$new_TZ" + fi + fi + export STEAM_RUNTIME=${if nativeOnly then "0" else "/steamrt"} '' + extraProfile; |