After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
result/bin/apply-formatting $NIXPKGS_PATH
324 lines
4.8 KiB
Nix
324 lines
4.8 KiB
Nix
{
|
|
lib,
|
|
buildFHSEnv,
|
|
lutris-unwrapped,
|
|
extraPkgs ? pkgs: [ ],
|
|
extraLibraries ? pkgs: [ ],
|
|
steamSupport ? true,
|
|
}:
|
|
|
|
let
|
|
|
|
qt5Deps =
|
|
pkgs: with pkgs.qt5; [
|
|
qtbase
|
|
qtmultimedia
|
|
];
|
|
qt6Deps = pkgs: with pkgs.qt6; [ qtbase ];
|
|
gnomeDeps =
|
|
pkgs: with pkgs; [
|
|
zenity
|
|
gtksourceview
|
|
gnome-desktop
|
|
libgnome-keyring
|
|
webkitgtk_4_0
|
|
];
|
|
xorgDeps =
|
|
pkgs: with pkgs.xorg; [
|
|
libX11
|
|
libXrender
|
|
libXrandr
|
|
libxcb
|
|
libXmu
|
|
libpthreadstubs
|
|
libXext
|
|
libXdmcp
|
|
libXxf86vm
|
|
libXinerama
|
|
libSM
|
|
libXv
|
|
libXaw
|
|
libXi
|
|
libXcursor
|
|
libXcomposite
|
|
libXfixes
|
|
libXtst
|
|
libXScrnSaver
|
|
libICE
|
|
libXt
|
|
];
|
|
gstreamerDeps =
|
|
pkgs: with pkgs.gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gst-plugins-ugly
|
|
gst-plugins-bad
|
|
gst-libav
|
|
];
|
|
|
|
in
|
|
buildFHSEnv {
|
|
pname = "lutris";
|
|
inherit (lutris-unwrapped) version;
|
|
|
|
runScript = "lutris";
|
|
|
|
# Many native and WINE games need 32bit
|
|
multiArch = true;
|
|
|
|
targetPkgs =
|
|
pkgs:
|
|
with pkgs;
|
|
[
|
|
lutris-unwrapped
|
|
|
|
# Appimages
|
|
fuse
|
|
|
|
# Adventure Game Studio
|
|
allegro
|
|
dumb
|
|
|
|
# Battle.net
|
|
jansson
|
|
|
|
# Curl
|
|
libnghttp2
|
|
|
|
# Desmume
|
|
lua
|
|
agg
|
|
soundtouch
|
|
openal
|
|
desktop-file-utils
|
|
atk
|
|
|
|
# DGen // TODO: libarchive is broken
|
|
|
|
# Dolphin
|
|
bluez
|
|
ffmpeg_6
|
|
gettext
|
|
portaudio
|
|
miniupnpc
|
|
mbedtls_2
|
|
lzo
|
|
sfml
|
|
gsm
|
|
wavpack
|
|
orc
|
|
nettle
|
|
gmp
|
|
pcre
|
|
vulkan-loader
|
|
zstd
|
|
|
|
# DOSBox
|
|
SDL_net
|
|
SDL_sound
|
|
|
|
# GOG
|
|
glib-networking
|
|
|
|
# Higan // TODO: "higan is not available for the x86_64 architecture"
|
|
|
|
# Libretro
|
|
fluidsynth
|
|
hidapi
|
|
libgbm
|
|
libdrm
|
|
|
|
# MAME
|
|
fontconfig
|
|
SDL2_ttf
|
|
|
|
# Mednafen
|
|
libglut
|
|
mesa_glu
|
|
|
|
# MESS
|
|
expat
|
|
|
|
# Minecraft
|
|
nss
|
|
|
|
# Mupen64Plus
|
|
boost
|
|
dash
|
|
|
|
# Overwatch 2
|
|
libunwind
|
|
|
|
# PPSSPP
|
|
glew
|
|
snappy
|
|
|
|
# Redream // "redream is not available for the x86_64 architecture"
|
|
|
|
# RPCS3
|
|
llvm
|
|
e2fsprogs
|
|
libgpg-error
|
|
|
|
# ScummVM
|
|
nasm
|
|
sndio
|
|
|
|
# ResidualVM is now merged with ScummVM and therefore does not exist anymore
|
|
flac
|
|
|
|
# Snes9x
|
|
libepoxy
|
|
minizip
|
|
|
|
# Vice
|
|
bison
|
|
flex
|
|
|
|
# WINE
|
|
xorg.xrandr
|
|
perl
|
|
which
|
|
p7zip
|
|
gnused
|
|
gnugrep
|
|
psmisc
|
|
opencl-headers
|
|
|
|
# ZDOOM
|
|
soundfont-fluid
|
|
bzip2
|
|
game-music-emu
|
|
]
|
|
++ qt5Deps pkgs
|
|
++ qt6Deps pkgs
|
|
++ gnomeDeps pkgs
|
|
++ lib.optional steamSupport pkgs.steam
|
|
++ extraPkgs pkgs;
|
|
|
|
multiPkgs =
|
|
pkgs:
|
|
with pkgs;
|
|
[
|
|
# Common
|
|
libsndfile
|
|
libtheora
|
|
libogg
|
|
libvorbis
|
|
libopus
|
|
libGLU
|
|
libpcap
|
|
libpulseaudio
|
|
libao
|
|
libevdev
|
|
udev
|
|
libgcrypt
|
|
libxml2
|
|
libusb1
|
|
libpng
|
|
libmpeg2
|
|
libv4l
|
|
libjpeg
|
|
libxkbcommon
|
|
libass
|
|
libcdio
|
|
libjack2
|
|
libsamplerate
|
|
libzip
|
|
libmad
|
|
libaio
|
|
libcap
|
|
libtiff
|
|
libva
|
|
libgphoto2
|
|
libxslt
|
|
libsndfile
|
|
giflib
|
|
zlib
|
|
glib
|
|
alsa-lib
|
|
zziplib
|
|
bash
|
|
dbus
|
|
keyutils
|
|
zip
|
|
cabextract
|
|
freetype
|
|
unzip
|
|
coreutils
|
|
readline
|
|
gcc
|
|
SDL
|
|
SDL2
|
|
curl
|
|
graphite2
|
|
gtk2
|
|
gtk3
|
|
udev
|
|
ncurses
|
|
wayland
|
|
libglvnd
|
|
vulkan-loader
|
|
xdg-utils
|
|
sqlite
|
|
gnutls
|
|
p11-kit
|
|
libbsd
|
|
harfbuzz
|
|
|
|
# PCSX2 // TODO: "libgobject-2.0.so.0: wrong ELF class: ELFCLASS64"
|
|
|
|
# WINE
|
|
cups
|
|
lcms2
|
|
mpg123
|
|
cairo
|
|
unixODBC
|
|
samba4
|
|
sane-backends
|
|
openldap
|
|
ocl-icd
|
|
util-linux
|
|
libkrb5
|
|
|
|
# Proton
|
|
libselinux
|
|
|
|
# Winetricks
|
|
fribidi
|
|
pango
|
|
]
|
|
++ xorgDeps pkgs
|
|
++ gstreamerDeps pkgs
|
|
++ extraLibraries pkgs;
|
|
|
|
extraInstallCommands = ''
|
|
mkdir -p $out/share
|
|
ln -sf ${lutris-unwrapped}/share/applications $out/share
|
|
ln -sf ${lutris-unwrapped}/share/icons $out/share
|
|
'';
|
|
|
|
# allows for some gui applications to share IPC
|
|
# this fixes certain issues where they don't render correctly
|
|
unshareIpc = false;
|
|
|
|
# Some applications such as Natron need access to MIT-SHM or other
|
|
# shared memory mechanisms. Unsharing the pid namespace
|
|
# breaks the ability for application to reference shared memory.
|
|
unsharePid = false;
|
|
|
|
meta = {
|
|
inherit (lutris-unwrapped.meta)
|
|
homepage
|
|
description
|
|
platforms
|
|
license
|
|
maintainers
|
|
broken
|
|
;
|
|
|
|
mainProgram = "lutris";
|
|
};
|
|
}
|