refactor(emacs): Install eglot & jsonrpc from ELPA instead of Github
trust++;
This commit is contained in:
		
							parent
							
								
									b805265c7d
								
							
						
					
					
						commit
						a25485fad4
					
				
					 1 changed files with 15 additions and 7 deletions
				
			
		
							
								
								
									
										22
									
								
								emacs.nix
									
										
									
									
									
								
							
							
						
						
									
										22
									
								
								emacs.nix
									
										
									
									
									
								
							| 
						 | 
					@ -25,18 +25,26 @@ nix-mode = emacsPackagesNg.melpaBuild {
 | 
				
			||||||
  '';
 | 
					  '';
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# The default Rust language server mode is not really usable, install
 | 
					jsonrpc = emacsPackagesNg.elpaBuild rec {
 | 
				
			||||||
# `eglot` instead and hope for the best.
 | 
					  pname   = "jsonrpc";
 | 
				
			||||||
 | 
					  version = "1.0.0";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  src = fetchurl {
 | 
				
			||||||
 | 
					    url    = "https://elpa.gnu.org/packages/jsonrpc-${version}.el";
 | 
				
			||||||
 | 
					    sha256 = "06lmmn7j2ilkvwibbpgnd8p6d63fjjnxd2ma8f4jw6vrz1f7lwvs";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
eglot = emacsPackagesNg.melpaBuild rec {
 | 
					eglot = emacsPackagesNg.melpaBuild rec {
 | 
				
			||||||
  pname = "eglot";
 | 
					  pname = "eglot";
 | 
				
			||||||
  version = "1.1";
 | 
					  version = "1.1";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  src = fetchFromGitHub {
 | 
					  src = fetchurl {
 | 
				
			||||||
    owner  = "joaotavora";
 | 
					    url    = "https://elpa.gnu.org/packages/eglot-${version}.tar";
 | 
				
			||||||
    repo   = "eglot";
 | 
					    sha256 = "01h4wh87lrd9l50y20gjjkgg760v8ixvbcb3q8jykl29989zw62y";
 | 
				
			||||||
    rev    = version;
 | 
					 | 
				
			||||||
    sha256 = "0p3fry60xvh7za0p8pyz4h21nzj6df1cbl9lxdzd19rwfd35fzpp";
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  packageRequires = [ jsonrpc ];
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ivy has not been updated in unstable for a while:
 | 
					# ivy has not been updated in unstable for a while:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue