diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix index d66a2a2ab69e..b4019f86e301 100644 --- a/pkgs/games/steam/chrootenv.nix +++ b/pkgs/games/steam/chrootenv.nix @@ -1,4 +1,4 @@ -{ buildFHSUserEnv, config }: +{ lib, buildFHSUserEnv, config }: buildFHSUserEnv { name = "steam"; @@ -14,7 +14,8 @@ buildFHSUserEnv { pkgs.gnome2.zenity pkgs.xdg_utils ] - ++ (if config.steam.java or false then [ pkgs.jdk ] else [ ]) + ++ lib.optional (config.steam.java or false) pkgs.jdk + ++ lib.optional (config.steam.primus or false) pkgs.primus ; multiPkgs = pkgs: diff --git a/pkgs/tools/X11/primus/default.nix b/pkgs/tools/X11/primus/default.nix index 684713bebb1a..c5c0e3ce7809 100644 --- a/pkgs/tools/X11/primus/default.nix +++ b/pkgs/tools/X11/primus/default.nix @@ -14,12 +14,7 @@ let ldPath = makeLibraryPath ([primusLib] ++ optional (primusLib_i686 != null) primusLib_i686); primusrun = writeScript "primusrun" '' - export LD_LIBRARY_PATH=${ldPath}:\$LD_LIBRARY_PATH - # see: https://github.com/amonakov/primus/issues/138 - # On my system, as of 3.16.6, the intel driver dies when the pixel buffers try to read from the - # source memory directly. Setting PRIMUS_UPLOAD causes an indirection through textures which - # avoids this issue. - export PRIMUS_UPLOAD=1 + export LD_LIBRARY_PATH=${ldPath}:$LD_LIBRARY_PATH exec "$@" ''; in