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.
This commit is contained in:
Adam Joseph 2023-06-07 12:46:13 -07:00 committed by Emery Hemingway
parent 8d2530ece4
commit d77f9d908e

View File

@ -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 \