feat(emacs): Add custom nix-mode derivation
Adds a nix-mode derivation that uses the latest nix-mode from master.
This commit is contained in:
		
							parent
							
								
									bcd317f23d
								
							
						
					
					
						commit
						92ae9eed7a
					
				
					 1 changed files with 19 additions and 3 deletions
				
			
		
							
								
								
									
										22
									
								
								emacs.nix
									
										
									
									
									
								
							
							
						
						
									
										22
									
								
								emacs.nix
									
										
									
									
									
								
							| 
						 | 
					@ -39,7 +39,24 @@ sly-company = with pkgs; trivialBuildWithCompany {
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Custom code for packages missing from the current Nix packages.
 | 
					# The nix-mode in the official repositories is old and annoying to
 | 
				
			||||||
 | 
					# work with, pin it to something newer instead:
 | 
				
			||||||
 | 
					nix-mode = with pkgs; emacsPackagesNg.melpaBuild {
 | 
				
			||||||
 | 
					  pname   = "nix-mode";
 | 
				
			||||||
 | 
					  version = "20180306";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  src = fetchFromGitHub {
 | 
				
			||||||
 | 
					    owner  = "NixOS";
 | 
				
			||||||
 | 
					    repo   = "nix-mode";
 | 
				
			||||||
 | 
					    rev    = "0ac0271f6c8acdbfddfdbb1211a1972ae562ec17";
 | 
				
			||||||
 | 
					    sha256 = "157vy4xkvaqd76km47sh41wykbjmfrzvg40jxgppnalq9pjxfinp";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  recipeFile = writeText "nix-mode-recipe" ''
 | 
				
			||||||
 | 
					    (nix-mode :repo "NixOS/nix-mode" :fetcher github
 | 
				
			||||||
 | 
					              :files (:defaults (:exclude "nix-mode-mmm.el")))
 | 
				
			||||||
 | 
					  '';
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
in emacsWithPackages(epkgs:
 | 
					in emacsWithPackages(epkgs:
 | 
				
			||||||
  # Actual ELPA packages (the enlightened!)
 | 
					  # Actual ELPA packages (the enlightened!)
 | 
				
			||||||
| 
						 | 
					@ -75,7 +92,6 @@ in emacsWithPackages(epkgs:
 | 
				
			||||||
    markdown-mode-plus
 | 
					    markdown-mode-plus
 | 
				
			||||||
    multi-term
 | 
					    multi-term
 | 
				
			||||||
    multiple-cursors
 | 
					    multiple-cursors
 | 
				
			||||||
    nix-mode
 | 
					 | 
				
			||||||
    paredit
 | 
					    paredit
 | 
				
			||||||
    password-store
 | 
					    password-store
 | 
				
			||||||
    racer
 | 
					    racer
 | 
				
			||||||
| 
						 | 
					@ -98,5 +114,5 @@ in emacsWithPackages(epkgs:
 | 
				
			||||||
  ]) ++
 | 
					  ]) ++
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Custom packaged Emacs packages:
 | 
					  # Custom packaged Emacs packages:
 | 
				
			||||||
  [ sly sly-company ]
 | 
					  [ sly sly-company nix-mode ]
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue