mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
emacsPackagesNg: don't call override
repeatedly
Calling override repeatedly obfuscates how the final package set is actually constructed.
This commit is contained in:
parent
9f55d3f29f
commit
f7ce3cdddb
1 changed files with 8 additions and 11 deletions
|
@ -46,12 +46,7 @@ with lib.licenses;
|
|||
|
||||
let
|
||||
|
||||
addMelpaPackages = scope: scope.override (super: melpaPackages);
|
||||
addMelpaStablePackages = scope: scope.override (super: melpaStablePackages);
|
||||
addElpaPackages = scope: scope.override (super: elpaPackages);
|
||||
addOverrides = scope: scope.override packagesFun;
|
||||
|
||||
packagesFun = super: self: with self; {
|
||||
packagesFun = self: with self; {
|
||||
|
||||
inherit emacs melpaBuild trivialBuild;
|
||||
|
||||
|
@ -2029,8 +2024,10 @@ let
|
|||
};
|
||||
|
||||
in
|
||||
addOverrides
|
||||
(addElpaPackages
|
||||
(addMelpaStablePackages
|
||||
(addMelpaPackages
|
||||
(lib.makeScope newScope (self: { inherit emacs; })))))
|
||||
lib.makeScope newScope (self:
|
||||
{}
|
||||
// melpaPackages self
|
||||
// melpaStablePackages self
|
||||
// elpaPackages self
|
||||
// packagesFun self
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue