eaglemode: add runtime deps for file archives

Adds runtime dependencies needed for zooming into various archive formats, as
per the documentation:

https://eaglemode.sourceforge.net/SystemRequirements.html

Additionally, users can now override extraRuntimeDeps to add additional things
that should be available to Eagle Mode at runtime. It supports some exotic
things we don't want to always drag in.
This commit is contained in:
Vincent Ambo 2024-08-27 16:59:25 +03:00 committed by Emery Hemingway
parent ce8769f7da
commit e47a32e1f5

View File

@ -24,6 +24,12 @@
copyDesktopItems,
directoryListingUpdater,
htmldoc,
binutils,
gzip,
p7zip,
xz,
zip,
extraRuntimeDeps ? [ ],
}:
stdenv.mkDerivation rec {
@ -81,10 +87,21 @@ stdenv.mkDerivation rec {
installPhase =
let
runtimeDeps = lib.makeBinPath [
ghostscript # renders the manual
htmldoc # renders HTML files in file browser
];
runtimeDeps = lib.makeBinPath (
[
ghostscript # renders the manual
htmldoc # renders HTML files in file browser
perl # various display scripts use Perl
# archive formats in the file browser:
binutils
gzip
p7zip
xz
zip
]
++ extraRuntimeDeps
);
in
''
runHook preInstall