Support specifying extra emacs pkgs from nixpkgs

This commit is contained in:
Thomas Schwanberger 2024-06-02 00:34:36 +02:00
parent e611b27529
commit 9aca28b012
3 changed files with 24 additions and 4 deletions

View file

@ -38,6 +38,8 @@
noProfileHack ? false,
/* Use fetchTree instead of fetchGit for package fetches. */
experimentalFetchTree ? false,
/* Extra emacs packages from nixpkgs */
extraPackages ? epkgs: [ ],
callPackages,
git,
@ -330,8 +332,8 @@ let
# Step 3: Build an emacsWithPackages, pulling all packages from step 1 from
# the set from step 2.
emacsWithPackages = doomEmacsPackages.emacsWithPackages
(epkgs: (map (p: epkgs.${p}) (builtins.attrNames doomPackageSet)));
emacsWithPackages = doomEmacsPackages.emacsWithPackages
(epkgs: (map (p: epkgs.${p}) (builtins.attrNames doomPackageSet)) ++ (extraPackages epkgs));
# Step 4: build a DOOMDIR, Doom profile and profile loader using Emacs from
# step 3 and packages.el from step 1.