mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	fix: noBuildPlug naming
This commit is contained in:
		
					parent
					
						
							
								eecebde413
							
						
					
				
			
			
				commit
				
					
						23e50a8eb7
					
				
			
		
					 1 changed files with 8 additions and 11 deletions
				
			
		|  | @ -7,23 +7,20 @@ | ||||||
| }: let | }: let | ||||||
|   inherit (pkgs) vimPlugins; |   inherit (pkgs) vimPlugins; | ||||||
|   inherit (lib.trivial) flip; |   inherit (lib.trivial) flip; | ||||||
|   inherit (builtins) path filter isString; |   inherit (builtins) filter isString; | ||||||
| 
 | 
 | ||||||
|   getPin = name: ((pkgs.callPackages ../../../npins/sources.nix {}) // config.vim.pluginOverrides).${name}; |   getPin = name: ((pkgs.callPackages ../../../npins/sources.nix {}) // config.vim.pluginOverrides).${name}; | ||||||
| 
 | 
 | ||||||
|   noBuildPlug = pname: let |   noBuildPlug = pname: let | ||||||
|     pin = getPin pname; |     pin = getPin pname; | ||||||
|     version = pin.revision or "dirty"; |     version = builtins.substring 0 8 pin.revision; | ||||||
|   in { |   in | ||||||
|     # vim.lazy.plugins relies on pname, so we only set that here |     pin.outPath.overrideAttrs { | ||||||
|     # version isn't needed for anything, but inherit it anyway for correctness |       inherit pname version; | ||||||
|     inherit pname version; |       name = "${pname}-${version}"; | ||||||
|     outPath = path { | 
 | ||||||
|       name = "${pname}-0-unstable-${version}"; |       passthru.vimPlugin = false; | ||||||
|       path = pin.outPath; |  | ||||||
|     }; |     }; | ||||||
|     passthru.vimPlugin = false; |  | ||||||
|   }; |  | ||||||
| 
 | 
 | ||||||
|   # build a vim plugin with the given name and arguments |   # build a vim plugin with the given name and arguments | ||||||
|   # if the plugin is nvim-treesitter, warn the user to use buildTreesitterPlug |   # if the plugin is nvim-treesitter, warn the user to use buildTreesitterPlug | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gerg-L
				Gerg-L