From d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 7 Jun 2023 12:46:13 -0700 Subject: [PATCH] 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. --- pkgs/applications/search/recoll/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/search/recoll/default.nix b/pkgs/applications/search/recoll/default.nix index 7c371fa20d56..55d636b8651c 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 \