nix-env: Ignore manifest.nix when recursing into ~/.nix-defexpr
Channels are implemented using a profile now, and profiles contain a manifest.nix file. This should be ignored to prevent bogus packages from showing up in nix-env.
This commit is contained in:
		
							parent
							
								
									46f852cda0
								
							
						
					
					
						commit
						ca94b38371
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -112,6 +112,11 @@ static void getAllExprs(EvalState & state, | |||
|     StringSet namesSorted(names.begin(), names.end()); | ||||
| 
 | ||||
|     foreach (StringSet::iterator, i, namesSorted) { | ||||
|         /* Ignore the manifest.nix used by profiles.  This is
 | ||||
|            necessary to prevent it from showing up in channels (which | ||||
|            are implemented using profiles). */ | ||||
|         if (*i == "manifest.nix") continue; | ||||
|          | ||||
|         Path path2 = path + "/" + *i; | ||||
|          | ||||
|         struct stat st; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue