about summary refs log tree commit diff
path: root/scripts/nix-reduce-build.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix-reduce-build.in')
-rw-r--r--scripts/nix-reduce-build.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/nix-reduce-build.in b/scripts/nix-reduce-build.in
index 444499d0e45f..5fc731c7ec8c 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;