| 1 | { pkgs, ... }: |
| 2 | { |
| 3 | programs.nix-ld.enable = true; |
| 4 | |
| 5 | # "minimum" amount of libraries needed for most games to run without steam-run |
| 6 | programs.nix-ld.libraries = with pkgs; [ |
| 7 | # common requirement for several games |
| 8 | stdenv.cc.cc.lib |
| 9 | libxcrypt |
| 10 | |
| 11 | # from https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/games/steam/fhsenv.nix#L72-L79 |
| 12 | libXcomposite |
| 13 | libXtst |
| 14 | libXrandr |
| 15 | libXext |
| 16 | libX11 |
| 17 | libXfixes |
| 18 | libGL |
| 19 | libva |
| 20 | |
| 21 | # from https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/games/steam/fhsenv.nix#L124-L136 |
| 22 | fontconfig |
| 23 | freetype |
| 24 | libXt |
| 25 | libXmu |
| 26 | libogg |
| 27 | libvorbis |
| 28 | SDL |
| 29 | SDL2_image |
| 30 | glew_1_10 |
| 31 | libdrm |
| 32 | libidn |
| 33 | tbb |
| 34 | zlib |
| 35 | alsa-lib |
| 36 | at-spi2-atk |
| 37 | at-spi2-core |
| 38 | atk |
| 39 | cairo |
| 40 | cups |
| 41 | curl |
| 42 | dbus |
| 43 | expat |
| 44 | fontconfig |
| 45 | freetype |
| 46 | fuse3 |
| 47 | gdk-pixbuf |
| 48 | glib |
| 49 | gtk3 |
| 50 | icu |
| 51 | libGL |
| 52 | libappindicator-gtk3 |
| 53 | libdrm |
| 54 | libglvnd |
| 55 | libnotify |
| 56 | libpulseaudio |
| 57 | libunwind |
| 58 | libusb1 |
| 59 | libuuid |
| 60 | libxkbcommon |
| 61 | libxml2 |
| 62 | mesa |
| 63 | nspr |
| 64 | nss |
| 65 | openssl |
| 66 | pango |
| 67 | pipewire |
| 68 | stdenv.cc.cc |
| 69 | systemd |
| 70 | vulkan-loader |
| 71 | libX11 |
| 72 | libXScrnSaver |
| 73 | libXcomposite |
| 74 | libXcursor |
| 75 | libXdamage |
| 76 | libXext |
| 77 | libXfixes |
| 78 | libXi |
| 79 | libXrandr |
| 80 | libXrender |
| 81 | libXtst |
| 82 | libxcb |
| 83 | libxkbfile |
| 84 | libxshmfence |
| 85 | zlib |
| 86 | libxslt |
| 87 | |
| 88 | # Stolen from https://github.com/Mic92/dotfiles/blob/57cf7fdf8705a5362fc19114b8395cdbf7668e94/nixos/modules/nix-ld.nix#L6-L58 |
| 89 | flite |
| 90 | gtk2 |
| 91 | gtk2-x11 |
| 92 | libsecret |
| 93 | libXinerama |
| 94 | |
| 95 | #stolen from https://git.craftingcomrades.net/nix/nixconf/src/branch/main/nixos-modules/shared-common/nix-ld.nix |
| 96 | stdenv.cc.cc.lib |
| 97 | libXt |
| 98 | libXmu |
| 99 | libogg |
| 100 | libvorbis |
| 101 | SDL |
| 102 | SDL2_image |
| 103 | glew_1_10 |
| 104 | ]; |
| 105 | } |