1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

emacs: remove custom emacsPackages

We can now directly use the existing package set since it supports
overrides.
This commit is contained in:
Robert Helgesson 2021-09-30 23:46:36 +02:00
parent 959217e51d
commit 677f1f05df
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
5 changed files with 9 additions and 13 deletions

View file

@ -6,11 +6,7 @@ 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;
emacsPackages = cfg.package.pkgs.overrideScope' cfg.overrides;
emacsWithPackages = emacsPackages.emacsWithPackages;
createConfPackage = epkgs:

View file

@ -8,9 +8,9 @@ with lib;
(self: super: rec {
emacs = pkgs.writeShellScriptBin "dummy-emacs-27.2" "" // {
outPath = "@emacs@";
pkgs =
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
};
emacsPackagesFor = _:
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
})
];

View file

@ -8,9 +8,9 @@ with lib;
(self: super: rec {
emacs = pkgs.writeShellScriptBin "dummy-emacs-28.0.5" "" // {
outPath = "@emacs@";
pkgs =
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
};
emacsPackagesFor = _:
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
})
];

View file

@ -10,9 +10,9 @@ in {
(self: super: rec {
emacs = pkgs.writeShellScriptBin "dummy-emacs-27.2" "" // {
outPath = "@emacs@";
pkgs =
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
};
emacsPackagesFor = _:
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
})
];

View file

@ -10,9 +10,9 @@ in {
(self: super: rec {
emacs = pkgs.writeShellScriptBin "dummy-emacs-28.0.5" "" // {
outPath = "@emacs@";
pkgs =
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
};
emacsPackagesFor = _:
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
})
];