mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 02:40:25 -08:00
Use overrideScope' for override
This fixes an issue that override cannot override packages which are the dependencies of usePkgs and not in usePkgs. This also preserves backward compatibility of override. The hash of the generated Emacs package from emacsWithPackagesFromUsePackage does not change after this patch is applied using the old style override.
This commit is contained in:
parent
96fec8e6cd
commit
d16c6c1fb2
3 changed files with 21 additions and 13 deletions
|
|
@ -126,8 +126,8 @@ required in a user's config via =use-package= or =leaf=.
|
|||
];
|
||||
|
||||
# Optionally override derivations.
|
||||
override = epkgs: epkgs // {
|
||||
weechat = epkgs.melpaPackages.weechat.overrideAttrs(old: {
|
||||
override = final: prev: {
|
||||
weechat = prev.melpaPackages.weechat.overrideAttrs(old: {
|
||||
patches = [ ./weechat-el.patch ];
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue