nixpkgs/pkgs/games/steam/chrootenv.nix

75 lines
1.4 KiB
Nix
Raw Normal View History

2015-02-05 15:16:02 +00:00
{ buildFHSUserEnv, config }:
2015-02-05 15:16:02 +00:00
buildFHSUserEnv {
name = "steam";
2014-04-22 23:03:14 +00:00
targetPkgs = pkgs:
[ pkgs.steam-original
2014-04-22 23:03:14 +00:00
pkgs.corefonts
pkgs.curl
pkgs.dbus
pkgs.dpkg
pkgs.mono
pkgs.python
pkgs.gnome2.zenity
pkgs.xdg_utils
2014-06-15 13:34:27 +00:00
]
++ (if config.steam.java or false then [ pkgs.jdk ] else [ ])
;
2014-04-22 23:03:14 +00:00
multiPkgs = pkgs:
2014-07-10 08:25:19 +00:00
[ pkgs.cairo
pkgs.glib
pkgs.gtk
pkgs.gdk_pixbuf
pkgs.pango
2014-04-22 23:03:14 +00:00
2014-07-10 08:25:19 +00:00
pkgs.freetype
pkgs.xlibs.libICE
pkgs.xlibs.libSM
pkgs.xlibs.libX11
pkgs.xlibs.libXau
pkgs.xlibs.libxcb
pkgs.xlibs.libXcursor
pkgs.xlibs.libXdamage
pkgs.xlibs.libXdmcp
pkgs.xlibs.libXext
pkgs.xlibs.libXfixes
pkgs.xlibs.libXi
pkgs.xlibs.libXinerama
pkgs.xlibs.libXrandr
pkgs.xlibs.libXrender
pkgs.xlibs.libXScrnSaver
pkgs.xlibs.libXtst
pkgs.xlibs.libXxf86vm
2014-04-22 23:03:14 +00:00
2014-07-10 08:25:19 +00:00
pkgs.ffmpeg
pkgs.libpng12
pkgs.mesa
pkgs.SDL
pkgs.SDL2
2014-04-22 23:03:14 +00:00
2014-07-10 08:25:19 +00:00
pkgs.libgcrypt
pkgs.zlib
2014-04-22 23:03:14 +00:00
2014-07-10 08:25:19 +00:00
pkgs.alsaLib
pkgs.libvorbis
pkgs.openal
pkgs.pulseaudio
2014-04-22 23:03:14 +00:00
2014-07-10 08:25:19 +00:00
pkgs.flashplayer
];
2014-04-22 23:03:14 +00:00
extraBuildCommandsMulti = ''
cd usr/lib
ln -sf ../lib64/steam steam
'';
profile = ''
2015-03-09 14:28:42 +00:00
# Ugly workaround for https://github.com/ValveSoftware/steam-for-linux/issues/3504
export LD_PRELOAD=/lib32/libpulse.so:/lib64/libpulse.so:/lib32/libasound.so:/lib64/libasound.so
'';
2015-02-05 15:16:02 +00:00
runScript = "exec steam";
}