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