Switch from buildEnv to symlinkJoin to keep dependencies out of the system path.
This commit is contained in:
		
							parent
							
								
									9976e232e6
								
							
						
					
					
						commit
						1b342d3402
					
				| @ -53,32 +53,25 @@ in | ||||
| 
 | ||||
|       nixpkgs.overlays = [ | ||||
|         (final: prev: { | ||||
|           emacs_full = pkgs.buildEnv { | ||||
|           emacs_full = pkgs.symlinkJoin { | ||||
|             name = "emacs_full"; | ||||
|             paths = with prev; [ | ||||
|               emacs29-pgtk | ||||
|               (pkgs.aspellWithDicts ( | ||||
|                 dicts: with dicts; [ | ||||
|                   en | ||||
|                   en-computers | ||||
|             paths = [ pkgs.emacs29-pgtk ]; | ||||
|             buildInputs = [ pkgs.makeWrapper ]; | ||||
|             postBuild = '' | ||||
|               wrapProgram $out/bin/emacs --prefix PATH : ${ | ||||
|                 lib.makeBinPath [ | ||||
|                   (pkgs.aspellWithDicts ( | ||||
|                     dicts: with dicts; [ | ||||
|                       en | ||||
|                       en-computers | ||||
|                     ] | ||||
|                   )) | ||||
|                   pkgs.nixd # nix language server | ||||
|                   pkgs.nixfmt-rfc-style # auto-formatting nix files through nixd | ||||
|                   pkgs.clang # To compile tree-sitter grammars | ||||
|                 ] | ||||
|               )) | ||||
|               nixd # nix language server | ||||
|               nixfmt-rfc-style # auto-formatting nix files through nixd | ||||
|               clang # To compile tree-sitter grammars | ||||
|             ]; | ||||
|             pathsToLink = [ | ||||
|               "/share/man" | ||||
|               "/share/doc" | ||||
|               "/share/info" | ||||
|               "/bin" | ||||
|               "/etc" | ||||
|             ]; | ||||
|             extraOutputsToInstall = [ | ||||
|               "man" | ||||
|               "doc" | ||||
|               "info" | ||||
|             ]; | ||||
|               } | ||||
|             ''; | ||||
|           }; | ||||
|         }) | ||||
|       ]; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander