Added verbosity for nix-reduce-build

This commit is contained in:
Michael Raskin 2008-06-12 16:26:53 +00:00
parent 2818b7cee6
commit 4532e4b90d
1 changed files with 3 additions and 0 deletions

View File

@ -62,14 +62,17 @@ for i in "$@"; do
filePath="${i#file:/}";
if [ "$i" != "$sshHost" ]; then
cat needed-paths | while read; do
echo "Getting $REPLY and its closure over ssh"
nix-copy-closure --from "$sshHost" --gzip "$REPLY" </dev/null || true;
done;
elif [ "$i" != "$httpHost" ] || [ "$i" != "$httpsHost" ]; then
cat needed-paths | while read; do
echo "Getting $REPLY over http/https"
curl ${BAD_CERTIFICATE:+-k} -L "$i${REPLY##*/}" | gunzip | nix-store --import;
done;
elif [ "$i" != "filePath" ] ; then
cat needed-paths | while read; do
echo "Installing $REPLY from file"
gunzip < "$filePath/${REPLY##*/}".nar.gz | nix-store --import;
done;
fi;