104 lines
1.8 KiB
Nix
104 lines
1.8 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.systemModules.sysd.system.nix-ld;
|
|
in {
|
|
options = {
|
|
systemModules.sysd.system.nix-ld.enable = mkEnableOption "Enables nix-ld";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
programs.nix-ld = {
|
|
enable = true;
|
|
# Sets up all the libraries to load
|
|
libraries = with pkgs; [
|
|
stdenv.cc.cc
|
|
openssl
|
|
xorg.libXcomposite
|
|
xorg.libXtst
|
|
xorg.libXrandr
|
|
xorg.libXext
|
|
xorg.libX11
|
|
xorg.libXfixes
|
|
libGL
|
|
libva
|
|
xorg.libxcb
|
|
xorg.libXdamage
|
|
xorg.libxshmfence
|
|
xorg.libXxf86vm
|
|
libelf
|
|
glib
|
|
gtk3
|
|
bzip2
|
|
xorg.libXinerama
|
|
xorg.libXcursor
|
|
xorg.libXrender
|
|
xorg.libXScrnSaver
|
|
xorg.libXi
|
|
xorg.libSM
|
|
xorg.libICE
|
|
gnome2.GConf
|
|
nspr
|
|
nss
|
|
cups
|
|
libcap
|
|
SDL2
|
|
libusb1
|
|
dbus-glib
|
|
ffmpeg
|
|
libudev0-shim
|
|
xorg.libXt
|
|
xorg.libXmu
|
|
libogg
|
|
libvorbis
|
|
SDL
|
|
SDL2_image
|
|
glew110
|
|
libidn
|
|
tbb
|
|
flac
|
|
freeglut
|
|
libjpeg
|
|
libpng
|
|
libpng12
|
|
libsamplerate
|
|
libmikmod
|
|
libtheora
|
|
libtiff
|
|
pixman
|
|
speex
|
|
SDL_image
|
|
SDL_ttf
|
|
SDL_mixer
|
|
SDL2_ttf
|
|
SDL2_mixer
|
|
libappindicator-gtk2
|
|
libdbusmenu-gtk2
|
|
libindicator-gtk2
|
|
libcaca
|
|
libcanberra
|
|
libgcrypt
|
|
libvpx
|
|
librsvg
|
|
xorg.libXft
|
|
libvdpau
|
|
gnome2.pango
|
|
cairo
|
|
atk
|
|
gdk-pixbuf
|
|
fontconfig
|
|
freetype
|
|
dbus
|
|
alsaLib
|
|
expat
|
|
libdrm
|
|
mesa
|
|
libxkbcommon
|
|
];
|
|
};
|
|
};
|
|
}
|