2015-03-09 21:01:43 +01:00
|
|
|
{ lib, buildFHSUserEnv, config }:
|
2013-09-13 23:58:59 +02:00
|
|
|
|
2015-02-05 16:16:02 +01:00
|
|
|
buildFHSUserEnv {
|
2013-09-13 23:58:59 +02:00
|
|
|
name = "steam";
|
2014-04-23 01:03:14 +02:00
|
|
|
|
|
|
|
targetPkgs = pkgs:
|
2015-02-06 01:48:32 +01:00
|
|
|
[ pkgs.steam-original
|
2014-04-23 01:03:14 +02:00
|
|
|
pkgs.corefonts
|
|
|
|
pkgs.curl
|
|
|
|
pkgs.dbus
|
|
|
|
pkgs.dpkg
|
|
|
|
pkgs.mono
|
|
|
|
pkgs.python
|
|
|
|
pkgs.gnome2.zenity
|
|
|
|
pkgs.xdg_utils
|
2015-05-31 19:54:33 +02:00
|
|
|
pkgs.xlibs.xrandr
|
2015-07-12 23:05:18 +02:00
|
|
|
pkgs.which
|
2014-06-15 15:34:27 +02:00
|
|
|
]
|
2015-03-09 21:01:43 +01:00
|
|
|
++ lib.optional (config.steam.java or false) pkgs.jdk
|
|
|
|
++ lib.optional (config.steam.primus or false) pkgs.primus
|
2014-06-15 15:34:27 +02:00
|
|
|
;
|
2014-04-23 01:03:14 +02:00
|
|
|
|
|
|
|
multiPkgs = pkgs:
|
2014-07-10 10:25:19 +02:00
|
|
|
[ pkgs.cairo
|
|
|
|
pkgs.glib
|
|
|
|
pkgs.gtk
|
|
|
|
pkgs.gdk_pixbuf
|
|
|
|
pkgs.pango
|
2014-04-23 01:03:14 +02:00
|
|
|
|
2014-07-10 10:25:19 +02: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-23 01:03:14 +02:00
|
|
|
|
2014-07-10 10:25:19 +02:00
|
|
|
pkgs.ffmpeg
|
|
|
|
pkgs.libpng12
|
|
|
|
pkgs.mesa
|
|
|
|
pkgs.SDL
|
|
|
|
pkgs.SDL2
|
2014-04-23 01:03:14 +02:00
|
|
|
|
2014-07-10 10:25:19 +02:00
|
|
|
pkgs.libgcrypt
|
|
|
|
pkgs.zlib
|
2014-04-23 01:03:14 +02:00
|
|
|
|
2014-07-10 10:25:19 +02:00
|
|
|
pkgs.alsaLib
|
|
|
|
pkgs.libvorbis
|
|
|
|
pkgs.openal
|
2015-05-29 23:38:53 +02:00
|
|
|
pkgs.libpulseaudio
|
2014-04-23 01:03:14 +02:00
|
|
|
|
2015-03-21 00:53:16 +01:00
|
|
|
pkgs.gst_all_1.gst-plugins-ugly # "Audiosurf 2" needs this
|
2014-07-10 10:25:19 +02:00
|
|
|
];
|
2014-04-23 01:03:14 +02:00
|
|
|
|
|
|
|
extraBuildCommandsMulti = ''
|
|
|
|
cd usr/lib
|
|
|
|
ln -sf ../lib64/steam steam
|
|
|
|
'';
|
|
|
|
|
2013-09-13 23:58:59 +02:00
|
|
|
profile = ''
|
2015-03-09 15:28:42 +01: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
|
2013-09-13 23:58:59 +02:00
|
|
|
'';
|
2015-02-05 16:16:02 +01:00
|
|
|
|
2015-04-22 15:52:57 +02:00
|
|
|
runScript = "steam";
|
2013-09-13 23:58:59 +02:00
|
|
|
}
|