Skip to content

overlays: use a better and clearer way to compose overlays#257

Merged
leungbk merged 2 commits intonix-community:masterfrom
linj-fork:fix-overlays
Oct 19, 2022
Merged

overlays: use a better and clearer way to compose overlays#257
leungbk merged 2 commits intonix-community:masterfrom
linj-fork:fix-overlays

Conversation

@jian-lin
Copy link
Copy Markdown
Member

@jian-lin jian-lin commented 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 workaround1 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.

cc @leungbk

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
@jian-lin jian-lin changed the title overlays: use a better way to compose overlays overlays: use a better and clearer way to compose overlays Oct 17, 2022
@leungbk leungbk merged commit 9fe0d44 into nix-community:master Oct 19, 2022
@leungbk
Copy link
Copy Markdown
Member

leungbk commented Oct 19, 2022

Thanks!

@jian-lin jian-lin deleted the fix-overlays branch October 19, 2022 01:53
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