Also trying to build derivers in case we cannot get substituters

This commit is contained in:
Michael Raskin 2008-06-14 08:48:40 +00:00
parent 18e27629d3
commit 955b8841cd
1 changed files with 9 additions and 1 deletions

View File

@ -93,10 +93,18 @@ for i in "$@"; do
echo "Building $REPLY using nix-daemon" >&2
NIX_REMOTE=daemon @bindir@/nix-store -r "${NIX_STORE_DIR:-/nix/store}/${REPLY##*/}"
done;
cat derivers-closure | while read; do
echo "Realising $REPLY using nix-daemon" >&2
NIX_REMOTE=daemon @bindir@/nix-store -r "${REPLY}"
done;
elif [ "$i" = "nix-self://" ] ; then
cat needed-paths | while read ; do
echo "Building $REPLY using direct Nix build" >&2
NIX_REMOTE= @bindir@/nix-store -r "${NIX_STORE_DIR:-/nix/store}/${REPLY##*/}"
NIX_REMOTE= @bindir@/nix-store -r "${NIX_STORE_DIR:-/nix/store}/${REPLY##*/}"
done;
cat derivers-closure | while read; do
echo "Realising $REPLY using direct Nix build" >&2
NIX_REMOTE= @bindir@/nix-store -r "${REPLY}"
done;
fi;
mv needed-paths wanted-paths;