ugly steam for for ati
[clever@amd-nixos:~]$ nix-shell -p steam -I nixpkgs=~/apps/nixpkgs/
[nix-shell:~]$ cd yy
[nix-shell:~/yy]$ type steam
steam is /nix/store/amxv5nslnv3dl52dqdr0iy1yckwwwvh3-steam/bin/steam
[nix-shell:~/yy]$ cat /nix/store/amxv5nslnv3dl52dqdr0iy1yckwwwvh3-steam/bin/steam
#! /nix/store/d44582rghk696yw704sh5nbvbpnm69iv-bash-4.3-p42/bin/bash
exec /nix/store/p70qk3qx121q64q8k9376f54vpdn52k5-chroot-user /nix/store/i30h1jv4x96hs9r1yhk7cdnqwyajd9mk-steam-init "$(pwd)" "$@"
[nix-shell:~/yy]$ cp /nix/store/i30h1jv4x96hs9r1yhk7cdnqwyajd9mk-steam-init steam-init-shell
[nix-shell:~/yy]$ vi steam-init-shell
(change it to exec a shell)
[nix-shell:~/yy]$ /nix/store/p70qk3qx121q64q8k9376f54vpdn52k5-chroot-user /home/clever/yy/steam-init-shell /home/clever/yy/
steam-chrootenv:clever@amd-nixos:~/yy$ cd ~/.local/share/Steam/
export LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib:/home/clever/.local/share/Steam/ubuntu12_32/:/steamrt/i386/lib/:/usr/lib32/steam-runtime/lib:/usr/lib32/:/usr/lib32/steam-runtime/lib/i386-linux-gnu:/usr/lib64/:/usr/lib64/steam-runtime/usr/lib/x86_64-linux-gnu/
steam-chrootenv:clever@amd-nixos:~/.local/share/Steam$ ./ubuntu12_32/steam
diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix
index 9a76645..01e91a8 100644
--- a/pkgs/games/steam/chrootenv.nix
+++ b/pkgs/games/steam/chrootenv.nix
@@ -46,6 +46,35 @@ in buildFHSUserEnv rec {
xlibs.libXext
xlibs.libX11
xlibs.libXfixes
+ # additions
+ glib
+ gtk
+ pulseaudioLight
+ gdk_pixbuf
+ curl
+ openal
+ fontconfig
+ xorg.libXinerama
+ xorg.libSM
+ xorg.libICE
+ freetype
+ pango
+ cairo
+ nss
+ nspr
+ xorg.libXi
+ xorg.libXcursor
+ xorg.libXrender
+ xorg.libXdamage
+ atk
+ dbus
+ expat
+ cups
+ xorg.libXScrnSaver
+ gnome3.gconf
+ libusb1
+ networkmanager
+ dbus_glib
# Not formally in runtime but needed by some games
gst_all_1.gstreamer