Added verbosity for nix-reduce-build
This commit is contained in:
parent
2818b7cee6
commit
4532e4b90d
|
@ -62,14 +62,17 @@ for i in "$@"; do
|
||||||
filePath="${i#file:/}";
|
filePath="${i#file:/}";
|
||||||
if [ "$i" != "$sshHost" ]; then
|
if [ "$i" != "$sshHost" ]; then
|
||||||
cat needed-paths | while read; do
|
cat needed-paths | while read; do
|
||||||
|
echo "Getting $REPLY and its closure over ssh"
|
||||||
nix-copy-closure --from "$sshHost" --gzip "$REPLY" </dev/null || true;
|
nix-copy-closure --from "$sshHost" --gzip "$REPLY" </dev/null || true;
|
||||||
done;
|
done;
|
||||||
elif [ "$i" != "$httpHost" ] || [ "$i" != "$httpsHost" ]; then
|
elif [ "$i" != "$httpHost" ] || [ "$i" != "$httpsHost" ]; then
|
||||||
cat needed-paths | while read; do
|
cat needed-paths | while read; do
|
||||||
|
echo "Getting $REPLY over http/https"
|
||||||
curl ${BAD_CERTIFICATE:+-k} -L "$i${REPLY##*/}" | gunzip | nix-store --import;
|
curl ${BAD_CERTIFICATE:+-k} -L "$i${REPLY##*/}" | gunzip | nix-store --import;
|
||||||
done;
|
done;
|
||||||
elif [ "$i" != "filePath" ] ; then
|
elif [ "$i" != "filePath" ] ; then
|
||||||
cat needed-paths | while read; do
|
cat needed-paths | while read; do
|
||||||
|
echo "Installing $REPLY from file"
|
||||||
gunzip < "$filePath/${REPLY##*/}".nar.gz | nix-store --import;
|
gunzip < "$filePath/${REPLY##*/}".nar.gz | nix-store --import;
|
||||||
done;
|
done;
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in a new issue