tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
recoll: Avoid using substituteInPlace on zip files
John Wiegley
8 years ago
850c9d80
7d7d12d2
+23
-21
1 changed file
expand all
collapse all
unified
split
pkgs
applications
search
recoll
default.nix
+23
-21
pkgs/applications/search/recoll/default.nix
···
30
30
# the absolute path to the filtering command.
31
31
postInstall = ''
32
32
for f in $out/share/recoll/filters/* ; do
33
33
-
substituteInPlace $f --replace '"antiword"' '"${lib.getBin antiword}/bin/antiword"'
34
34
-
substituteInPlace $f --replace '"awk"' '"${lib.getBin gawk}/bin/awk"'
35
35
-
substituteInPlace $f --replace '"catppt"' '"${lib.getBin catdoc}/bin/catppt"'
36
36
-
substituteInPlace $f --replace '"djvused"' '"${lib.getBin djvulibre}/bin/djvused"'
37
37
-
substituteInPlace $f --replace '"djvutxt"' '"${lib.getBin djvulibre}/bin/djvutxt"'
38
38
-
substituteInPlace $f --replace '"egrep"' '"${lib.getBin gnugrep}/bin/egrep"'
39
39
-
substituteInPlace $f --replace '"groff"' '"${lib.getBin groff}/bin/groff"'
40
40
-
substituteInPlace $f --replace '"gunzip"' '"${lib.getBin gzip}/bin/gunzip"'
41
41
-
substituteInPlace $f --replace '"iconv"' '"${lib.getBin libiconv}/bin/iconv"'
42
42
-
substituteInPlace $f --replace '"pdftotext"' '"${lib.getBin poppler_utils}/bin/pdftotext"'
43
43
-
substituteInPlace $f --replace '"pstotext"' '"${lib.getBin ghostscript}/bin/ps2ascii"'
44
44
-
substituteInPlace $f --replace '"sed"' '"${lib.getBin gnused}/bin/sed"'
45
45
-
substituteInPlace $f --replace '"tar"' '"${lib.getBin gnutar}/bin/tar"'
46
46
-
substituteInPlace $f --replace '"unzip"' '"${lib.getBin unzip}/bin/unzip"'
47
47
-
substituteInPlace $f --replace '"xls2csv"' '"${lib.getBin catdoc}/bin/xls2csv"'
48
48
-
substituteInPlace $f --replace '"xsltproc"' '"${lib.getBin libxslt}/bin/xsltproc"'
49
49
-
substituteInPlace $f --replace '"unrtf"' '"${lib.getBin unrtf}/bin/unrtf"'
50
50
-
substituteInPlace $f --replace '"untex"' '"${lib.getBin untex}/bin/untex"'
51
51
-
substituteInPlace $f --replace '"wpd2html"' '"${lib.getBin libwpd}/bin/wpd2html"'
52
52
-
substituteInPlace $f --replace /usr/bin/perl ${lib.getBin perl}/bin/perl
33
33
+
if [[ ! "$f" =~ \.zip$ ]]; then
34
34
+
substituteInPlace $f --replace '"antiword"' '"${lib.getBin antiword}/bin/antiword"'
35
35
+
substituteInPlace $f --replace '"awk"' '"${lib.getBin gawk}/bin/awk"'
36
36
+
substituteInPlace $f --replace '"catppt"' '"${lib.getBin catdoc}/bin/catppt"'
37
37
+
substituteInPlace $f --replace '"djvused"' '"${lib.getBin djvulibre}/bin/djvused"'
38
38
+
substituteInPlace $f --replace '"djvutxt"' '"${lib.getBin djvulibre}/bin/djvutxt"'
39
39
+
substituteInPlace $f --replace '"egrep"' '"${lib.getBin gnugrep}/bin/egrep"'
40
40
+
substituteInPlace $f --replace '"groff"' '"${lib.getBin groff}/bin/groff"'
41
41
+
substituteInPlace $f --replace '"gunzip"' '"${lib.getBin gzip}/bin/gunzip"'
42
42
+
substituteInPlace $f --replace '"iconv"' '"${lib.getBin libiconv}/bin/iconv"'
43
43
+
substituteInPlace $f --replace '"pdftotext"' '"${lib.getBin poppler_utils}/bin/pdftotext"'
44
44
+
substituteInPlace $f --replace '"pstotext"' '"${lib.getBin ghostscript}/bin/ps2ascii"'
45
45
+
substituteInPlace $f --replace '"sed"' '"${lib.getBin gnused}/bin/sed"'
46
46
+
substituteInPlace $f --replace '"tar"' '"${lib.getBin gnutar}/bin/tar"'
47
47
+
substituteInPlace $f --replace '"unzip"' '"${lib.getBin unzip}/bin/unzip"'
48
48
+
substituteInPlace $f --replace '"xls2csv"' '"${lib.getBin catdoc}/bin/xls2csv"'
49
49
+
substituteInPlace $f --replace '"xsltproc"' '"${lib.getBin libxslt}/bin/xsltproc"'
50
50
+
substituteInPlace $f --replace '"unrtf"' '"${lib.getBin unrtf}/bin/unrtf"'
51
51
+
substituteInPlace $f --replace '"untex"' '"${lib.getBin untex}/bin/untex"'
52
52
+
substituteInPlace $f --replace '"wpd2html"' '"${lib.getBin libwpd}/bin/wpd2html"'
53
53
+
substituteInPlace $f --replace /usr/bin/perl ${lib.getBin perl}/bin/perl
54
54
+
fi
53
55
done
54
56
'' + stdenv.lib.optionalString stdenv.isLinux ''
55
55
-
substituteInPlace $f --replace lyx ${lib.getBin lyx}/bin/lyx
57
57
+
substituteInPlace $f --replace '"lyx"' '"${lib.getBin lyx}/bin/lyx"'
56
58
'';
57
59
58
60
enableParallelBuilding = true;