mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 02:40:25 -08:00
overlays: use a better and clearer way to compose overlays
The old way of composing overlays addes an unnecessay overlay, which
breaks the packages attribute of the flake. To reduce the impact on
users, I make a workaround[1] for that, which has been merged. Now I
figure out the real fix, which is to change (_: super) to (_: {}).
Additionally, the old way is a bit confusing.
This patch fixes both issues by using a better and clearer way to
compose overlays.
Since the workaround is no longer needed after this patch, I revert
that in the next commit.
[1]: https://github.com/nix-community/emacs-overlay/pull/256
This commit is contained in:
parent
f8d2c22b07
commit
a03c096100
1 changed files with 1 additions and 2 deletions
|
|
@ -1,10 +1,9 @@
|
|||
self: super:
|
||||
let
|
||||
inherit (super.lib) foldl' flip extends;
|
||||
overlays = [
|
||||
# package overlay must be applied before emacs overlay
|
||||
(import ./package.nix)
|
||||
(import ./emacs.nix)
|
||||
];
|
||||
in
|
||||
foldl' (flip extends) (_: super) overlays self
|
||||
super.lib.composeManyExtensions overlays self super
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue