summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-06-07 12:46:13 -0700
committerEmery Hemingway <ehmry@posteo.net>2023-06-08 08:25:05 +0100
commitd77f9d908eab8dfe8f7a2447384eb4752cf1e4e1 (patch)
tree3b895a6f700514a43c4a7260eb7d833c6de2f156
parent8d2530ece4044cdbbef5114cd9d12a6ea88323f2 (diff)
downloadnixpkgs-d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1.tar
nixpkgs-d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1.tar.gz
nixpkgs-d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1.tar.bz2
nixpkgs-d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1.tar.lz
nixpkgs-d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1.tar.xz
nixpkgs-d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1.tar.zst
nixpkgs-d77f9d908eab8dfe8f7a2447384eb4752cf1e4e1.zip
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.
-rw-r--r--pkgs/applications/search/recoll/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/search/recoll/default.nix b/pkgs/applications/search/recoll/default.nix
index 7c371fa20d5..55d636b8651 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 \