mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-25 09:02:40 +00:00 
			
		
		
		
	feat: add lib function to quickly mkOption mappings
This commit is contained in:
		
					parent
					
						
							
								e372fb1ccc
							
						
					
				
			
			
				commit
				
					
						475acf90cb
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -24,6 +24,12 @@ in | |||
|         }; | ||||
|       }; | ||||
| 
 | ||||
|     mkMappingOption = description: default: | ||||
|       self.mkOption { | ||||
|         type = self.types.nullOr self.types.str; | ||||
|         inherit default description; | ||||
|       }; | ||||
| 
 | ||||
|     # For forward compatibility. | ||||
|     literalExpression = super.literalExpression or super.literalExample; | ||||
|     literalDocBook = super.literalDocBook or super.literalExample; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 n3oney
				n3oney