mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
emacs: get packages from local emacs
This commit is contained in:
parent
f26aa4b76f
commit
64984c5acb
1 changed files with 3 additions and 6 deletions
|
@ -6,12 +6,9 @@ let
|
|||
|
||||
cfg = config.programs.emacs;
|
||||
|
||||
# Copied from all-packages.nix, with modifications to support
|
||||
# overrides.
|
||||
emacsPackages = let epkgs = pkgs.emacsPackagesFor cfg.package;
|
||||
in epkgs.overrideScope cfg.overrides;
|
||||
|
||||
emacsWithPackages = emacsPackages.emacsWithPackages;
|
||||
# Get the packages from the supplied emacs rather than the nixpkgs to ensure a
|
||||
# separate emacs pin also carries with it the packages from that pin.
|
||||
inherit (cfg.package.pkgs.overrideScope cfg.overrides) emacsWithPackages;
|
||||
|
||||
extraPackages = epkgs:
|
||||
let
|
||||
|
|
Loading…
Reference in a new issue