steam: Add /etc/{localtime,zoneinfo}.
Some games (in my case Stardew Valley) require at least something in /etc/localtime. The actual file linked there doesn't matter as long as it's some valid timezone.
This commit is contained in:
parent
f422afd07d
commit
229bac0d09
@ -9,11 +9,19 @@
|
||||
|
||||
let
|
||||
commonTargetPkgs = pkgs: with pkgs;
|
||||
let primus2 =
|
||||
if newStdcpp then primus else primus.override {
|
||||
let
|
||||
primus2 = if newStdcpp then primus else primus.override {
|
||||
stdenv = overrideInStdenv stdenv [ useOldCXXAbi ];
|
||||
stdenv_i686 = overrideInStdenv pkgsi686Linux.stdenv [ useOldCXXAbi ];
|
||||
};
|
||||
tzdir = "${pkgs.tzdata}/share/zoneinfo";
|
||||
# I'm not sure if this is the best way to add things like this
|
||||
# to an FHSUserEnv
|
||||
etc-zoneinfo = pkgs.runCommand "zoneinfo" {} ''
|
||||
mkdir -p $out/etc
|
||||
ln -s ${tzdir} $out/etc/zoneinfo
|
||||
ln -s ${tzdir}/UTC $out/etc/localtime
|
||||
'';
|
||||
in [
|
||||
steamPackages.steam-fonts
|
||||
# Errors in output without those
|
||||
@ -26,6 +34,8 @@ let
|
||||
perl
|
||||
# Open URLs
|
||||
xdg_utils
|
||||
# Zoneinfo
|
||||
etc-zoneinfo
|
||||
] ++ lib.optional withJava jdk
|
||||
++ lib.optional withPrimus primus2;
|
||||
|
||||
@ -76,6 +86,7 @@ in buildFHSUserEnv rec {
|
||||
|
||||
profile = ''
|
||||
export STEAM_RUNTIME=/steamrt
|
||||
export TZDIR=/etc/zoneinfo
|
||||
'';
|
||||
|
||||
runScript = "steam";
|
||||
|
Loading…
Reference in New Issue
Block a user