recoll: Avoid using substituteInPlace on zip files
This commit is contained in:
parent
7d7d12d22d
commit
850c9d805a
@ -30,6 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
# the absolute path to the filtering command.
|
# the absolute path to the filtering command.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for f in $out/share/recoll/filters/* ; do
|
for f in $out/share/recoll/filters/* ; do
|
||||||
|
if [[ ! "$f" =~ \.zip$ ]]; then
|
||||||
substituteInPlace $f --replace '"antiword"' '"${lib.getBin antiword}/bin/antiword"'
|
substituteInPlace $f --replace '"antiword"' '"${lib.getBin antiword}/bin/antiword"'
|
||||||
substituteInPlace $f --replace '"awk"' '"${lib.getBin gawk}/bin/awk"'
|
substituteInPlace $f --replace '"awk"' '"${lib.getBin gawk}/bin/awk"'
|
||||||
substituteInPlace $f --replace '"catppt"' '"${lib.getBin catdoc}/bin/catppt"'
|
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 '"untex"' '"${lib.getBin untex}/bin/untex"'
|
||||||
substituteInPlace $f --replace '"wpd2html"' '"${lib.getBin libwpd}/bin/wpd2html"'
|
substituteInPlace $f --replace '"wpd2html"' '"${lib.getBin libwpd}/bin/wpd2html"'
|
||||||
substituteInPlace $f --replace /usr/bin/perl ${lib.getBin perl}/bin/perl
|
substituteInPlace $f --replace /usr/bin/perl ${lib.getBin perl}/bin/perl
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
'' + 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;
|
enableParallelBuilding = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user