nix: Respect -I, --arg, --argstr
Also, random cleanup to argument handling.
This commit is contained in:
		
							parent
							
								
									25f32625e2
								
							
						
					
					
						commit
						0d59f1ca49
					
				
					 26 changed files with 349 additions and 299 deletions
				
			
		
							
								
								
									
										26
									
								
								src/libexpr/common-eval-args.hh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								src/libexpr/common-eval-args.hh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include "args.hh" | ||||
| 
 | ||||
| namespace nix { | ||||
| 
 | ||||
| class Store; | ||||
| class EvalState; | ||||
| struct Bindings; | ||||
| 
 | ||||
| struct MixEvalArgs : virtual Args | ||||
| { | ||||
|     MixEvalArgs(); | ||||
| 
 | ||||
|     Bindings * getAutoArgs(EvalState & state); | ||||
| 
 | ||||
|     Strings searchPath; | ||||
| 
 | ||||
| private: | ||||
| 
 | ||||
|     std::map<std::string, std::string> autoArgs; | ||||
| }; | ||||
| 
 | ||||
| Path lookupFileArg(EvalState & state, string s); | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue