From 955b8841cd2a32afd7f2be56b198ce4d163f3b46 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 14 Jun 2008 08:48:40 +0000 Subject: [PATCH] Also trying to build derivers in case we cannot get substituters --- scripts/nix-reduce-build.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/nix-reduce-build.in b/scripts/nix-reduce-build.in index 444499d0e..5fc731c7e 100644 --- a/scripts/nix-reduce-build.in +++ b/scripts/nix-reduce-build.in @@ -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;