From e47a32e1f59119a7477a412cfff1e7650c7f7522 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 27 Aug 2024 16:59:25 +0300 Subject: [PATCH] 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. --- pkgs/applications/misc/eaglemode/default.nix | 25 ++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/eaglemode/default.nix b/pkgs/applications/misc/eaglemode/default.nix index c081cac6e4db..17de44cc027e 100644 --- a/pkgs/applications/misc/eaglemode/default.nix +++ b/pkgs/applications/misc/eaglemode/default.nix @@ -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