summary refs log tree commit diff
path: root/pkgs/games/steam/chrootenv.nix
blob: 75bbca67ab0741c3e95852b6032cecc3b21cc8c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{ buildFHSChrootEnv, config }:

buildFHSChrootEnv {
  name = "steam";

  targetPkgs = pkgs:
    [ pkgs.steam
      pkgs.corefonts
      pkgs.curl
      pkgs.dbus
      pkgs.dpkg
      pkgs.mono
      pkgs.python
      pkgs.gnome2.zenity
      pkgs.xdg_utils
    ]
    ++ (if config.steam.java or false then [ pkgs.jdk ] else [ ])
    ;

  multiPkgs = pkgs:
    [ pkgs.cairo
      pkgs.glib
      pkgs.gtk
      pkgs.gdk_pixbuf
      pkgs.pango

      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

      pkgs.ffmpeg
      pkgs.libpng12
      pkgs.mesa
      pkgs.SDL
      pkgs.SDL2

      pkgs.libgcrypt
      pkgs.zlib

      pkgs.alsaLib
      pkgs.libvorbis
      pkgs.openal
      pkgs.pulseaudio

      pkgs.flashplayer
    ];

  extraBuildCommandsMulti = ''
    cd usr/lib
    ln -sf ../lib64/steam steam
  '';

  profile = ''
    export LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib:/lib:/lib32:/lib64
    export PATH=$PATH:/usr/bin:/usr/sbin
    export FONTCONFIG_FILE=/etc/fonts/fonts.conf
  '';
}