* nix-install-package: unset NIX_REMOTE because $NIX_MANIFESTS_DIR
doesn't work when building through the Nix daemon. This also ensures an error message when the user doesn't have sufficient privileges to do nix-pull.
This commit is contained in:
		
							parent
							
								
									8c69dac8a1
								
							
						
					
					
						commit
						d94cb02bfe
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -124,8 +124,11 @@ if ($interactive) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Store the manifest in the temporary directory so that we don't
 | 
					# Store the manifest in the temporary directory so that we don't
 | 
				
			||||||
# pollute /nix/var/nix/manifests.
 | 
					# pollute /nix/var/nix/manifests.  This also requires that we don't
 | 
				
			||||||
 | 
					# use the Nix daemon (because otherwise download-using-manifests won't
 | 
				
			||||||
 | 
					# see our NIX_MANIFESTS_DIRS environment variable).
 | 
				
			||||||
$ENV{NIX_MANIFESTS_DIR} = $tmpDir;
 | 
					$ENV{NIX_MANIFESTS_DIR} = $tmpDir;
 | 
				
			||||||
 | 
					$ENV{NIX_REMOTE} = "";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
print "\nPulling manifests...\n";
 | 
					print "\nPulling manifests...\n";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue