Also trying to build derivers in case we cannot get substituters
This commit is contained in:
		
							parent
							
								
									18e27629d3
								
							
						
					
					
						commit
						955b8841cd
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
					@ -93,11 +93,19 @@ for i in "$@"; do
 | 
				
			||||||
			echo "Building $REPLY using nix-daemon" >&2
 | 
								echo "Building $REPLY using nix-daemon" >&2
 | 
				
			||||||
			NIX_REMOTE=daemon @bindir@/nix-store -r "${NIX_STORE_DIR:-/nix/store}/${REPLY##*/}"
 | 
								NIX_REMOTE=daemon @bindir@/nix-store -r "${NIX_STORE_DIR:-/nix/store}/${REPLY##*/}"
 | 
				
			||||||
		done;
 | 
							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
 | 
						elif [ "$i" = "nix-self://" ] ; then
 | 
				
			||||||
		cat needed-paths | while read ; do 
 | 
							cat needed-paths | while read ; do 
 | 
				
			||||||
			echo "Building $REPLY using direct Nix build" >&2
 | 
								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;
 | 
							done;
 | 
				
			||||||
 | 
							cat derivers-closure | while read; do 
 | 
				
			||||||
 | 
								echo "Realising $REPLY using direct Nix build" >&2
 | 
				
			||||||
 | 
								NIX_REMOTE= @bindir@/nix-store -r "${REPLY}"
 | 
				
			||||||
 | 
							done;
 | 
				
			||||||
	fi;
 | 
						fi;
 | 
				
			||||||
	mv needed-paths wanted-paths;
 | 
						mv needed-paths wanted-paths;
 | 
				
			||||||
	cat wanted-paths | xargs nix-store --check-validity --print-invalid > needed-paths;
 | 
						cat wanted-paths | xargs nix-store --check-validity --print-invalid > needed-paths;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue