recoll: Avoid using substituteInPlace on zip files

This commit is contained in:
John Wiegley 2018-02-28 17:44:09 -08:00
parent 7d7d12d22d
commit 850c9d805a

View File

@ -30,6 +30,7 @@ stdenv.mkDerivation rec {
# the absolute path to the filtering command.
postInstall = ''
for f in $out/share/recoll/filters/* ; do
if [[ ! "$f" =~ \.zip$ ]]; then
substituteInPlace $f --replace '"antiword"' '"${lib.getBin antiword}/bin/antiword"'
substituteInPlace $f --replace '"awk"' '"${lib.getBin gawk}/bin/awk"'
substituteInPlace $f --replace '"catppt"' '"${lib.getBin catdoc}/bin/catppt"'
@ -50,9 +51,10 @@ stdenv.mkDerivation rec {
substituteInPlace $f --replace '"untex"' '"${lib.getBin untex}/bin/untex"'
substituteInPlace $f --replace '"wpd2html"' '"${lib.getBin libwpd}/bin/wpd2html"'
substituteInPlace $f --replace /usr/bin/perl ${lib.getBin perl}/bin/perl
fi
done
'' + stdenv.lib.optionalString stdenv.isLinux ''
substituteInPlace $f --replace lyx ${lib.getBin lyx}/bin/lyx
substituteInPlace $f --replace '"lyx"' '"${lib.getBin lyx}/bin/lyx"'
'';
enableParallelBuilding = true;