Commit eef4013
authored
fix(flake-info): tighten home-manager flake detection (#1235)
Detecting home-manager flakes by `modules/modules.nix` alone produced
false positives for unrelated flakes that happen to ship a similarly
named file (e.g. `nix-bitcoin`). Once a non-HM flake matched, the
subsequent `import` of `modules/lib/stdlib-extended.nix` aborted the
whole evaluation, so packages and options for those flakes also failed
to index.
Also require `modules/lib/stdlib-extended.nix` to be present, which is
specific to home-manager and is the helper `readHomeManagerOptions`
already imports.
Refs #12341 parent b11c65c commit eef4013
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
522 | 530 | | |
523 | | - | |
| 531 | + | |
524 | 532 | | |
525 | 533 | | |
526 | 534 | | |
| |||
0 commit comments