Commit e47a32e1 authored by Vincent Ambo's avatar Vincent Ambo Committed by Emery Hemingway
Browse files

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.
parent ce8769f7
Loading
Loading
Loading
Loading
+21 −4
Original line number Diff line number Diff line
@@ -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 [
      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