mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-13 13:13:36 -05:00
add instruction for how to install packages with dependencies
This commit is contained in:
committed by
László Vaskó
parent
89147ceac0
commit
5f4bcd36a2
22
README.md
22
README.md
@@ -46,3 +46,25 @@ instead of running emacs.d/bin/doom, once you have update your config files (pac
|
||||
## Troubleshooting
|
||||
|
||||
On macOS on a fresh install, you might run into the error `Too many files open`. running `ulimit -S -n 2048` will only work for the duration of your shell and will fix the error
|
||||
|
||||
## Installing emacs packages
|
||||
|
||||
In the initial packages.el instructions for how to install packages can be found.
|
||||
However some packages might require a particular software dependency to be installed.
|
||||
Trying to install those would give you an error of the type:
|
||||
`Searching for program: No such file or directory, git` (Missing git dependency)
|
||||
Here is how you would go installing [magit-delta](https://github.com/dandavison/magit-delta) for example (which requires git).
|
||||
|
||||
under the line:
|
||||
`doomPrivateDir = ./doom.d;`
|
||||
in your configuration, you would add the following:
|
||||
|
||||
```Nix
|
||||
emacsPackagesOverlay = self: super: {
|
||||
magit-delta = super.magit-delta.overrideAttrs (esuper: {
|
||||
buildInputs = esuper.buildInputs ++ [ pkgs.git ];
|
||||
});
|
||||
};
|
||||
```
|
||||
to make the git dependency available.
|
||||
trying to rebuild doom-emacs with `home-manager switch` should work correctly now.
|
||||
|
Reference in New Issue
Block a user