* Hack to allow derivations to disable chroot builds by setting the
attribute "__noChroot = true" (requested by Rob).
This commit is contained in:
		
							parent
							
								
									b92a2e5cc2
								
							
						
					
					
						commit
						a443c7573b
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -1545,6 +1545,9 @@ void DerivationGoal::startBuilder() | ||||||
| 
 | 
 | ||||||
|     if (fixedOutput) useChroot = false; |     if (fixedOutput) useChroot = false; | ||||||
| 
 | 
 | ||||||
|  |     /* Hack to allow derivations to disable chroot builds. */ | ||||||
|  |     if (drv.env["__noChroot"] == "1") useChroot = false; | ||||||
|  | 
 | ||||||
|     if (useChroot) { |     if (useChroot) { | ||||||
| #if CHROOT_ENABLED | #if CHROOT_ENABLED | ||||||
|         /* Create a temporary directory in which we set up the chroot
 |         /* Create a temporary directory in which we set up the chroot
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue