diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-06-07 12:46:13 -0700 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2023-06-08 08:25:05 +0100 |
commit | d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1 (patch) | |
tree | 3b895a6f700514a43c4a7260eb7d833c6de2f156 /pkgs/applications/search | |
parent | 8d2530ece4044cdbbef5114cd9d12a6ea88323f2 (diff) |
recoll: use wrapProgram to set $PATH for recoll, recollindex
Many recoll filters assume that $PATH contains all their dependencies. Our current patching approach is a game of whack-a-mole, and while we will continue trying to play it we ought to set the $PATH as well. This commit eliminates a huge number of extraneous error messages from recoll's log, making it easier to see the remaining ones which really matter.
Diffstat (limited to 'pkgs/applications/search')
-rw-r--r-- | pkgs/applications/search/recoll/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/search/recoll/default.nix b/pkgs/applications/search/recoll/default.nix index 7c371fa20d566..55d636b8651cd 100644 --- a/pkgs/applications/search/recoll/default.nix +++ b/pkgs/applications/search/recoll/default.nix @@ -144,6 +144,8 @@ mkDerivation rec { substituteInPlace $f --replace /usr/bin/perl ${lib.getBin (perl.passthru.withPackages (p: [ p.ImageExifTool ]))}/bin/perl fi done + wrapProgram $out/bin/recoll --prefix PATH : "${filterPath}" + wrapProgram $out/bin/recollindex --prefix PATH : "${filterPath}" wrapProgram $out/share/recoll/filters/rclaudio.py \ --prefix PYTHONPATH : $PYTHONPATH wrapProgram $out/share/recoll/filters/rclimg \ |