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