diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-06-14 08:48:40 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-06-14 08:48:40 +0000 |
commit | 955b8841cd2a32afd7f2be56b198ce4d163f3b46 (patch) | |
tree | b453b2bbaf5d4ef95cb334009e346850ce51e3c3 /scripts/nix-reduce-build.in | |
parent | 18e27629d301ceef4c6f896f22197f8daee24da3 (diff) |
Also trying to build derivers in case we cannot get substituters
Diffstat (limited to 'scripts/nix-reduce-build.in')
-rw-r--r-- | scripts/nix-reduce-build.in | 10 |
1 files changed, 9 insertions, 1 deletions
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; |