Skip to content

[WIP] multiple by-name directories#206

Draft
quantenzitrone wants to merge 1 commit intoNixOS:mainfrom
quantenzitrone:multi-by-name
Draft

[WIP] multiple by-name directories#206
quantenzitrone wants to merge 1 commit intoNixOS:mainfrom
quantenzitrone:multi-by-name

Conversation

@quantenzitrone
Copy link
Copy Markdown

@quantenzitrone quantenzitrone commented Mar 14, 2026

Basically a new attempt at #31, but instead of adapting #180, i start from scratch because i wasn't able to rebase it due to lack of codebase knowledge. Also probably lack of skill.

this is the first step of having multiple by-name directories
@quantenzitrone
Copy link
Copy Markdown
Author

quantenzitrone commented Mar 15, 2026

Problem: the current way of getting AttributeInfo with the overlay does not work for package sets, as one cannot override callPackage in package sets.

makeScope =
  newScope: f:
  let
    self = f self // {
      newScope = scope: newScope (self // scope);
      callPackage = self.newScope { };
      overrideScope = g: makeScope newScope (extends g f);
      packages = f;
    };
  in
  self;

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.

1 participant