136 lines
2.2 KiB
Nix
136 lines
2.2 KiB
Nix
|
{ options, config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
with lib.metacfg;
|
||
|
let cfg = config.metacfg.nix-ld;
|
||
|
in
|
||
|
{
|
||
|
options.metacfg.nix-ld = with types; {
|
||
|
enable = mkBoolOpt false "Whether or not to enable nix-ld.";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
|
||
|
programs.nix-ld.enable = true;
|
||
|
|
||
|
# Sets up all the libraries to load
|
||
|
programs.nix-ld.libraries = with pkgs; [
|
||
|
SDL
|
||
|
SDL2
|
||
|
SDL2_image
|
||
|
SDL2_mixer
|
||
|
SDL2_ttf
|
||
|
SDL_image
|
||
|
SDL_mixer
|
||
|
SDL_ttf
|
||
|
alsa-lib
|
||
|
at-spi2-atk
|
||
|
at-spi2-core
|
||
|
atk
|
||
|
bzip2
|
||
|
cairo
|
||
|
cups
|
||
|
curlWithGnuTls
|
||
|
dbus
|
||
|
dbus-glib
|
||
|
desktop-file-utils
|
||
|
e2fsprogs
|
||
|
expat
|
||
|
flac
|
||
|
fontconfig
|
||
|
freeglut
|
||
|
freetype
|
||
|
fribidi
|
||
|
fuse
|
||
|
fuse3
|
||
|
gdk-pixbuf
|
||
|
glew110
|
||
|
glib
|
||
|
gmp
|
||
|
gst_all_1.gst-plugins-base
|
||
|
gst_all_1.gst-plugins-ugly
|
||
|
gst_all_1.gstreamer
|
||
|
gtk2
|
||
|
harfbuzz
|
||
|
icu
|
||
|
keyutils.lib
|
||
|
libGL
|
||
|
libGLU
|
||
|
libappindicator-gtk2
|
||
|
libcaca
|
||
|
libcanberra
|
||
|
libcap
|
||
|
libclang.lib
|
||
|
libdbusmenu
|
||
|
libdrm
|
||
|
libgcrypt
|
||
|
libgpg-error
|
||
|
libidn
|
||
|
libjack2
|
||
|
libjpeg
|
||
|
libmikmod
|
||
|
libogg
|
||
|
libpng12
|
||
|
libpulseaudio
|
||
|
librsvg
|
||
|
libsamplerate
|
||
|
libsecret
|
||
|
libthai
|
||
|
libtheora
|
||
|
libtiff
|
||
|
libudev0-shim
|
||
|
libusb1
|
||
|
libuuid
|
||
|
libvdpau
|
||
|
libvorbis
|
||
|
libvpx
|
||
|
libxcrypt-legacy
|
||
|
libxkbcommon
|
||
|
libxml2
|
||
|
mesa
|
||
|
nspr
|
||
|
nss
|
||
|
openssl
|
||
|
p11-kit
|
||
|
pango
|
||
|
pixman
|
||
|
python3
|
||
|
speex
|
||
|
stdenv.cc.cc
|
||
|
tbb
|
||
|
udev
|
||
|
vulkan-loader
|
||
|
wayland
|
||
|
xorg.libICE
|
||
|
xorg.libSM
|
||
|
xorg.libX11
|
||
|
xorg.libXScrnSaver
|
||
|
xorg.libXcomposite
|
||
|
xorg.libXcursor
|
||
|
xorg.libXdamage
|
||
|
xorg.libXext
|
||
|
xorg.libXfixes
|
||
|
xorg.libXft
|
||
|
xorg.libXi
|
||
|
xorg.libXinerama
|
||
|
xorg.libXmu
|
||
|
xorg.libXrandr
|
||
|
xorg.libXrender
|
||
|
xorg.libXt
|
||
|
xorg.libXtst
|
||
|
xorg.libXxf86vm
|
||
|
xorg.libpciaccess
|
||
|
xorg.libxcb
|
||
|
xorg.xcbutil
|
||
|
xorg.xcbutilimage
|
||
|
xorg.xcbutilkeysyms
|
||
|
xorg.xcbutilrenderutil
|
||
|
xorg.xcbutilwm
|
||
|
xorg.xkeyboardconfig
|
||
|
xz
|
||
|
zlib
|
||
|
];
|
||
|
|
||
|
};
|
||
|
}
|