1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

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

View file

@ -93,11 +93,19 @@ 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##*/}"
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;
cat wanted-paths | xargs nix-store --check-validity --print-invalid > needed-paths;