mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
If "pv" is available at compile time, hard-code its path
This commit is contained in:
parent
34a85c5405
commit
969a14599d
@ -171,6 +171,7 @@ NEED_PROG(bzip2, bzip2)
|
||||
AC_PATH_PROG(dot, dot)
|
||||
AC_PATH_PROG(dblatex, dblatex)
|
||||
AC_PATH_PROG(gzip, gzip)
|
||||
AC_PATH_PROG(pv, pv, pv)
|
||||
|
||||
|
||||
# Test that Perl has the open/fork feature (Perl 5.8.0 and beyond).
|
||||
|
@ -63,7 +63,7 @@ while (@ARGV) {
|
||||
$includeOutputs = 1;
|
||||
}
|
||||
elsif ($arg eq "--show-progress") {
|
||||
$progressViewer = "pv";
|
||||
$progressViewer = "@pv@";
|
||||
}
|
||||
elsif ($arg eq "--dry-run") {
|
||||
$dryRun = 1;
|
||||
|
@ -22,6 +22,7 @@
|
||||
-e "s^@sed\@^$(sed)^g" \
|
||||
-e "s^@tar\@^$(tar)^g" \
|
||||
-e "s^@gzip\@^$(gzip)^g" \
|
||||
-e "s^@pv\@^$(pv)^g" \
|
||||
-e "s^@tr\@^$(tr)^g" \
|
||||
-e "s^@dot\@^$(dot)^g" \
|
||||
-e "s^@xmllint\@^$(xmllint)^g" \
|
||||
|
Loading…
Reference in New Issue
Block a user