Switch from buildEnv to symlinkJoin to keep dependencies out of the system path.

This commit is contained in:
Tom Alexander 2025-01-19 10:09:49 -05:00
parent 9976e232e6
commit 1b342d3402
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -53,32 +53,25 @@ in
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { (final: prev: {
emacs_full = pkgs.buildEnv { emacs_full = pkgs.symlinkJoin {
name = "emacs_full"; name = "emacs_full";
paths = with prev; [ paths = [ pkgs.emacs29-pgtk ];
emacs29-pgtk buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/emacs --prefix PATH : ${
lib.makeBinPath [
(pkgs.aspellWithDicts ( (pkgs.aspellWithDicts (
dicts: with dicts; [ dicts: with dicts; [
en en
en-computers en-computers
] ]
)) ))
nixd # nix language server pkgs.nixd # nix language server
nixfmt-rfc-style # auto-formatting nix files through nixd pkgs.nixfmt-rfc-style # auto-formatting nix files through nixd
clang # To compile tree-sitter grammars pkgs.clang # To compile tree-sitter grammars
]; ]
pathsToLink = [ }
"/share/man" '';
"/share/doc"
"/share/info"
"/bin"
"/etc"
];
extraOutputsToInstall = [
"man"
"doc"
"info"
];
}; };
}) })
]; ];