diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rwxr-xr-x | scripts/nix-copy-closure.in | 2 | ||||
-rw-r--r-- | substitute.mk | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c37f76870..fba53e816 100644 --- a/configure.ac +++ b/configure.ac @@ -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). diff --git a/scripts/nix-copy-closure.in b/scripts/nix-copy-closure.in index ca240d3ee..12a83cff9 100755 --- a/scripts/nix-copy-closure.in +++ b/scripts/nix-copy-closure.in @@ -63,7 +63,7 @@ while (@ARGV) { $includeOutputs = 1; } elsif ($arg eq "--show-progress") { - $progressViewer = "pv"; + $progressViewer = "@pv@"; } elsif ($arg eq "--dry-run") { $dryRun = 1; diff --git a/substitute.mk b/substitute.mk index 9009b4249..d28b330a6 100644 --- a/substitute.mk +++ b/substitute.mk @@ -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" \ |