2024-09-20 21:39:50 +00:00
|
|
|
{
|
|
|
|
buildFHSEnv,
|
|
|
|
heroic-unwrapped,
|
|
|
|
extraPkgs ? pkgs: [ ],
|
|
|
|
extraLibraries ? pkgs: [ ],
|
2022-08-19 22:26:01 +00:00
|
|
|
}:
|
|
|
|
|
2023-04-11 10:52:27 +00:00
|
|
|
buildFHSEnv {
|
2022-08-19 22:26:01 +00:00
|
|
|
name = "heroic";
|
|
|
|
|
|
|
|
runScript = "heroic";
|
|
|
|
|
2023-07-01 10:02:07 +00:00
|
|
|
# Many Wine and native games need 32-bit libraries.
|
|
|
|
multiArch = true;
|
|
|
|
|
2023-08-26 08:00:12 +00:00
|
|
|
# required by Electron
|
|
|
|
unshareIpc = false;
|
|
|
|
|
2024-09-20 21:39:50 +00:00
|
|
|
targetPkgs =
|
|
|
|
pkgs:
|
|
|
|
with pkgs;
|
|
|
|
[
|
|
|
|
heroic-unwrapped
|
|
|
|
gamemode
|
|
|
|
curl
|
|
|
|
gawk
|
|
|
|
zenity
|
|
|
|
plasma5Packages.kdialog
|
|
|
|
mangohud
|
|
|
|
nettools
|
|
|
|
opencl-headers
|
|
|
|
p7zip
|
|
|
|
perl
|
|
|
|
psmisc
|
|
|
|
python3
|
|
|
|
unzip
|
|
|
|
which
|
|
|
|
xorg.xrandr
|
|
|
|
zstd
|
|
|
|
]
|
|
|
|
++ extraPkgs pkgs;
|
2022-08-19 22:26:01 +00:00
|
|
|
|
2024-09-20 21:39:50 +00:00
|
|
|
multiPkgs =
|
|
|
|
let
|
|
|
|
xorgDeps =
|
|
|
|
pkgs: with pkgs.xorg; [
|
|
|
|
libpthreadstubs
|
|
|
|
libSM
|
|
|
|
libX11
|
|
|
|
libXaw
|
|
|
|
libxcb
|
|
|
|
libXcomposite
|
|
|
|
libXcursor
|
|
|
|
libXdmcp
|
|
|
|
libXext
|
|
|
|
libXi
|
|
|
|
libXinerama
|
|
|
|
libXmu
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
|
|
|
libXv
|
|
|
|
libXxf86vm
|
|
|
|
];
|
|
|
|
gstreamerDeps =
|
|
|
|
pkgs: with pkgs.gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-libav
|
|
|
|
];
|
|
|
|
in
|
|
|
|
pkgs:
|
|
|
|
with pkgs;
|
|
|
|
[
|
|
|
|
alsa-lib
|
|
|
|
alsa-plugins
|
|
|
|
bash
|
|
|
|
cabextract
|
|
|
|
cairo
|
|
|
|
coreutils
|
|
|
|
cups
|
|
|
|
dbus
|
|
|
|
freealut
|
|
|
|
freetype
|
|
|
|
fribidi
|
|
|
|
giflib
|
|
|
|
glib
|
|
|
|
gnutls
|
|
|
|
gtk3
|
|
|
|
icu
|
|
|
|
lcms2
|
|
|
|
libevdev
|
|
|
|
libgcrypt
|
|
|
|
libGLU
|
|
|
|
libglvnd
|
|
|
|
libgpg-error
|
|
|
|
libgudev
|
|
|
|
libjpeg
|
|
|
|
libkrb5
|
|
|
|
libmpeg2
|
|
|
|
libogg
|
|
|
|
libopus
|
|
|
|
libpng
|
|
|
|
libpulseaudio
|
|
|
|
libselinux
|
|
|
|
libsndfile
|
|
|
|
libsoup
|
|
|
|
libtheora
|
|
|
|
libtiff
|
|
|
|
libunwind
|
|
|
|
libusb1
|
|
|
|
libv4l
|
|
|
|
libva
|
|
|
|
libvdpau
|
|
|
|
libvorbis
|
|
|
|
libvpx
|
|
|
|
libwebp
|
|
|
|
libxkbcommon
|
|
|
|
libxml2
|
|
|
|
mpg123
|
|
|
|
ncurses
|
|
|
|
ocl-icd
|
|
|
|
openal
|
|
|
|
openldap
|
|
|
|
openssl
|
|
|
|
pango
|
|
|
|
pipewire
|
|
|
|
samba4
|
|
|
|
sane-backends
|
|
|
|
SDL2
|
|
|
|
speex
|
|
|
|
sqlite
|
|
|
|
udev
|
|
|
|
unixODBC
|
|
|
|
util-linux
|
|
|
|
vulkan-loader
|
|
|
|
wayland
|
|
|
|
zlib
|
|
|
|
]
|
|
|
|
++ xorgDeps pkgs
|
2023-08-13 15:03:38 +00:00
|
|
|
++ gstreamerDeps pkgs
|
2022-08-19 22:26:01 +00:00
|
|
|
++ extraLibraries pkgs;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
ln -s ${heroic-unwrapped}/share/applications $out/share
|
|
|
|
ln -s ${heroic-unwrapped}/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = heroic-unwrapped.meta;
|
|
|
|
}
|