diff options
author | Lin Jian <me@linj.tech> | 2022-10-17 21:38:10 +0800 |
---|---|---|
committer | Lin Jian <me@linj.tech> | 2022-10-18 04:53:16 +0800 |
commit | a03c0961009f0028c794bd740f2e049f568247d7 (patch) | |
tree | 0f3046d9e9ceda4532be6692c2bc9c1e7b3872de /overlays | |
parent | f8d2c22b0714629bb7f8e90071b12fa56cd620be (diff) | |
download | nixlib-a03c0961009f0028c794bd740f2e049f568247d7.tar nixlib-a03c0961009f0028c794bd740f2e049f568247d7.tar.gz nixlib-a03c0961009f0028c794bd740f2e049f568247d7.tar.bz2 nixlib-a03c0961009f0028c794bd740f2e049f568247d7.tar.lz nixlib-a03c0961009f0028c794bd740f2e049f568247d7.tar.xz nixlib-a03c0961009f0028c794bd740f2e049f568247d7.tar.zst nixlib-a03c0961009f0028c794bd740f2e049f568247d7.zip |
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
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/overlays/default.nix b/overlays/default.nix index 089b5494dca9..4819573515a2 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -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 |