Fix non-Darwin build
This commit is contained in:
		
							parent
							
								
									29c0199d5c
								
							
						
					
					
						commit
						743e310046
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -1729,9 +1729,11 @@ void DerivationGoal::startBuilder()
 | 
				
			||||||
            if (get(drv->env, "__noChroot") == "1")
 | 
					            if (get(drv->env, "__noChroot") == "1")
 | 
				
			||||||
                throw Error(format("derivation ‘%1%’ has ‘__noChroot’ set, "
 | 
					                throw Error(format("derivation ‘%1%’ has ‘__noChroot’ set, "
 | 
				
			||||||
                    "but that's not allowed when ‘build-use-sandbox’ is ‘true’") % drvPath);
 | 
					                    "but that's not allowed when ‘build-use-sandbox’ is ‘true’") % drvPath);
 | 
				
			||||||
 | 
					#if __APPLE__
 | 
				
			||||||
            if (additionalSandboxProfile != "")
 | 
					            if (additionalSandboxProfile != "")
 | 
				
			||||||
                throw Error(format("derivation ‘%1%’ specifies a sandbox profile, "
 | 
					                throw Error(format("derivation ‘%1%’ specifies a sandbox profile, "
 | 
				
			||||||
                    "but this is only allowed when ‘build-use-sandbox’ is ‘relaxed’") % drvPath);
 | 
					                    "but this is only allowed when ‘build-use-sandbox’ is ‘relaxed’") % drvPath);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
            useChroot = true;
 | 
					            useChroot = true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else if (x == "false")
 | 
					        else if (x == "false")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue