diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-07-11 18:07:55 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-07-11 18:08:13 +0300 |
commit | 6a3e2f89fb9f3c206cceef94926806a4a09a16db (patch) | |
tree | 317e5ec04ebbc10cbb2f8c30d2a4e39497470587 /pkgs/games | |
parent | 532211c68dc2bdab667739ad895a46a3f23491d1 (diff) | |
download | nixlib-6a3e2f89fb9f3c206cceef94926806a4a09a16db.tar nixlib-6a3e2f89fb9f3c206cceef94926806a4a09a16db.tar.gz nixlib-6a3e2f89fb9f3c206cceef94926806a4a09a16db.tar.bz2 nixlib-6a3e2f89fb9f3c206cceef94926806a4a09a16db.tar.lz nixlib-6a3e2f89fb9f3c206cceef94926806a4a09a16db.tar.xz nixlib-6a3e2f89fb9f3c206cceef94926806a4a09a16db.tar.zst nixlib-6a3e2f89fb9f3c206cceef94926806a4a09a16db.zip |
steam: fix primus with new libstdc++ and add to steam-run
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/steam/chrootenv.nix | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix index ba163ebc3d29..9a7664550552 100644 --- a/pkgs/games/steam/chrootenv.nix +++ b/pkgs/games/steam/chrootenv.nix @@ -8,19 +8,26 @@ }: let - commonTargetPkgs = pkgs: with pkgs; [ - steamPackages.steam-fonts - # Errors in output without those - pciutils - python2 - # Games' dependencies - xlibs.xrandr - which - # Needed by gdialog, including in the steam-runtime - perl - # Open URLs - xdg_utils - ]; + commonTargetPkgs = pkgs: with pkgs; + let primus2 = + if newStdcpp then primus else primus.override { + stdenv = overrideInStdenv stdenv [ useOldCXXAbi ]; + stdenv_i686 = overrideInStdenv pkgsi686Linux.stdenv [ useOldCXXAbi ]; + }; + in [ + steamPackages.steam-fonts + # Errors in output without those + pciutils + python2 + # Games' dependencies + xlibs.xrandr + which + # Needed by gdialog, including in the steam-runtime + perl + # Open URLs + xdg_utils + ] ++ lib.optional withJava jdk + ++ lib.optional withPrimus primus2; in buildFHSUserEnv rec { name = "steam"; @@ -29,12 +36,7 @@ in buildFHSUserEnv rec { steamPackages.steam # License agreement gnome3.zenity - ] ++ commonTargetPkgs pkgs - ++ lib.optional withJava jdk - ++ lib.optional withPrimus (primus.override { - stdenv = overrideInStdenv stdenv [ useOldCXXAbi ]; - stdenv_i686 = overrideInStdenv pkgsi686Linux.stdenv [ useOldCXXAbi ]; - }); + ] ++ commonTargetPkgs pkgs; multiPkgs = pkgs: with pkgs; [ # These are required by steam with proper errors |