2022-08-20 00:26:01 +02:00
|
|
|
{ lib
|
|
|
|
, buildFHSUserEnv
|
|
|
|
, heroic-unwrapped
|
|
|
|
, extraPkgs ? pkgs: [ ]
|
|
|
|
, extraLibraries ? pkgs: [ ]
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildFHSUserEnv {
|
|
|
|
name = "heroic";
|
|
|
|
|
|
|
|
runScript = "heroic";
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
];
|
|
|
|
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
|
2022-11-07 20:54:24 +01:00
|
|
|
gst_all_1.gst-plugins-base
|
2022-08-20 00:26:01 +02:00
|
|
|
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
|
2022-08-20 00:26:01 +02:00
|
|
|
libjpeg
|
|
|
|
libkrb5
|
|
|
|
libmpeg2
|
|
|
|
libogg
|
|
|
|
libopus
|
|
|
|
libpng
|
|
|
|
libpulseaudio
|
|
|
|
libselinux
|
|
|
|
libsndfile
|
|
|
|
libsndfile
|
|
|
|
libtheora
|
|
|
|
libtiff
|
|
|
|
libusb1
|
|
|
|
libv4l
|
|
|
|
libva
|
|
|
|
libvorbis
|
|
|
|
libxkbcommon
|
|
|
|
libxml2
|
|
|
|
mpg123
|
2022-11-07 20:54:24 +01:00
|
|
|
ncurses
|
2022-08-20 00:26:01 +02:00
|
|
|
ocl-icd
|
|
|
|
openldap
|
|
|
|
pipewire
|
|
|
|
samba4
|
|
|
|
sane-backends
|
|
|
|
SDL2
|
2022-11-07 20:54:24 +01:00
|
|
|
sqlite
|
2022-08-20 00:26:01 +02:00
|
|
|
udev
|
|
|
|
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
|
|
|
|
++ 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;
|
|
|
|
}
|