2022-08-19 22:26:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildFHSUserEnv
|
|
|
|
, heroic-unwrapped
|
|
|
|
, extraPkgs ? pkgs: [ ]
|
|
|
|
, extraLibraries ? pkgs: [ ]
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildFHSUserEnv {
|
|
|
|
name = "heroic";
|
|
|
|
|
|
|
|
runScript = "heroic";
|
|
|
|
|
|
|
|
targetPkgs = pkgs: with pkgs; [
|
|
|
|
heroic-unwrapped
|
|
|
|
curl
|
|
|
|
gawk
|
|
|
|
gnome.zenity
|
2022-10-12 06:43:30 +00:00
|
|
|
plasma5Packages.kdialog
|
2022-08-19 22:26:01 +00: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
|
|
|
|
bash
|
|
|
|
cairo
|
|
|
|
coreutils
|
|
|
|
cups
|
|
|
|
dbus
|
|
|
|
freetype
|
|
|
|
fribidi
|
|
|
|
giflib
|
|
|
|
glib
|
|
|
|
gnutls
|
|
|
|
gtk3
|
|
|
|
lcms2
|
|
|
|
libevdev
|
|
|
|
libGLU
|
|
|
|
libglvnd
|
|
|
|
libjpeg
|
|
|
|
libkrb5
|
|
|
|
libmpeg2
|
|
|
|
libogg
|
|
|
|
libopus
|
|
|
|
libpng
|
|
|
|
libpulseaudio
|
|
|
|
libselinux
|
|
|
|
libsndfile
|
|
|
|
libsndfile
|
|
|
|
libtheora
|
|
|
|
libtiff
|
|
|
|
libusb1
|
|
|
|
libv4l
|
|
|
|
libva
|
|
|
|
libvorbis
|
|
|
|
libxkbcommon
|
|
|
|
libxml2
|
|
|
|
mpg123
|
|
|
|
ocl-icd
|
|
|
|
openldap
|
|
|
|
pipewire
|
|
|
|
samba4
|
|
|
|
sane-backends
|
|
|
|
SDL2
|
|
|
|
udev
|
|
|
|
udev
|
|
|
|
unixODBC
|
|
|
|
util-linux
|
|
|
|
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;
|
|
|
|
}
|