From 1a524776a4402745e6ddf40253f1c6a33f0c8cd1 Mon Sep 17 00:00:00 2001 From: Mon Aaraj Date: Fri, 16 Sep 2022 01:13:01 +0300 Subject: [PATCH] talk about the "package not available" error --- docs/faq.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index b7b70ec..77409d5 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -33,7 +33,8 @@ programs.doom-emacs = { ## How do I add a package that's only on GitHub (or any Git frontend) -This requires a few more lines, but it isn't by any means difficult. For an example, this installs `idris2-mode` which isn't on ELPA, but is hosted on GitHub: +This is the question you need if your Doom configuration errors with `Package not available`. `nix-straight.el` assumes that packages are on emacs-overlay's packages, which only include (M)ELPA. This question assumes the package uses GitHub, so it uses the `fetchFromGitHub` function. To see which function you'd need to use, you should look at [the Nixpkgs manual's fetchers section](https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers) +This requires a few more lines, but it isn't by any means difficult. For an example, this installs `idris2-mode` which isn't on (M)ELPA, but is hosted on GitHub: ```nix programs.doom-emacs = {