summary refs log tree commit diff
path: root/pkgs/games/steam
diff options
context:
space:
mode:
authorItai Zukerman <zukerman@math-hat.com>2017-05-28 11:04:25 -0700
committerNikolay Amiantov <ab@fmap.me>2017-06-02 20:19:03 +0300
commitad7bee4eb406b88c77cb53edbe9d4de44e7e692d (patch)
tree1e6522540e0934abe2f7615763f72f28cc5aa7f0 /pkgs/games/steam
parentc73355506acd89330ecb621768a785e94447e942 (diff)
downloadnixpkgs-ad7bee4eb406b88c77cb53edbe9d4de44e7e692d.tar
nixpkgs-ad7bee4eb406b88c77cb53edbe9d4de44e7e692d.tar.gz
nixpkgs-ad7bee4eb406b88c77cb53edbe9d4de44e7e692d.tar.bz2
nixpkgs-ad7bee4eb406b88c77cb53edbe9d4de44e7e692d.tar.lz
nixpkgs-ad7bee4eb406b88c77cb53edbe9d4de44e7e692d.tar.xz
nixpkgs-ad7bee4eb406b88c77cb53edbe9d4de44e7e692d.tar.zst
nixpkgs-ad7bee4eb406b88c77cb53edbe9d4de44e7e692d.zip
steam: Added extraPkgs option to chroot env.
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r--pkgs/games/steam/chrootenv.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix
index 1fbf5a9dd1a..ace8e9888a7 100644
--- a/pkgs/games/steam/chrootenv.nix
+++ b/pkgs/games/steam/chrootenv.nix
@@ -2,6 +2,7 @@
 , steam-runtime, steam-runtime-i686 ? null
 , withJava ? false
 , withPrimus ? false
+, extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs
 , nativeOnly ? false
 , runtimeOnly ? false
 , newStdcpp ? false
@@ -37,7 +38,8 @@ let
       # Zoneinfo
       etc-zoneinfo
     ] ++ lib.optional withJava jdk
-      ++ lib.optional withPrimus primus2;
+      ++ lib.optional withPrimus primus2
+      ++ extraPkgs pkgs;
 
 in buildFHSUserEnv rec {
   name = "steam";