Skip to content

flake.nix: fix the hack of getting overlayAttrs#256

Merged
leungbk merged 1 commit intonix-community:masterfrom
linj-fork:fix-packages
Oct 15, 2022
Merged

flake.nix: fix the hack of getting overlayAttrs#256
leungbk merged 1 commit intonix-community:masterfrom
linj-fork:fix-packages

Conversation

@jian-lin
Copy link
Copy Markdown
Member

Before this patch and since #237, overlayAttrs is a list of all attrs in all-packages.nix, which breaks the usage of the package attr of this overlay.

But it should be only the attrs added by this overlay. This patch fixes this.

@jian-lin
Copy link
Copy Markdown
Member Author

cc @leungbk

@leungbk leungbk merged commit c9b9a56 into nix-community:master Oct 15, 2022
@leungbk
Copy link
Copy Markdown
Member

leungbk commented Oct 15, 2022

Thanks!

@jian-lin jian-lin deleted the fix-packages branch October 17, 2022 11:39
jian-lin added a commit to linj-fork/emacs-overlay that referenced this pull request Oct 17, 2022
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]: nix-community#256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants