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 = [
|
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 ];
|
||||||
(pkgs.aspellWithDicts (
|
postBuild = ''
|
||||||
dicts: with dicts; [
|
wrapProgram $out/bin/emacs --prefix PATH : ${
|
||||||
en
|
lib.makeBinPath [
|
||||||
en-computers
|
(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