-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Merge pull request NixOS#6621 from Kha/nested-follows""
This reverts commit a8b3d77. This undoes the revert of PR#6621, which allows nested `follows`, i.e. { inputs = { foo.url = "github:bar/foo"; foo.inputs.bar.inputs.nixpkgs = "nixpkgs"; }; } does the expected thing now. This is useful to avoid the 1000 instances of nixpkgs problem without having each flake in the dependency tree to expose all of its transitive dependencies for modification. This was in fact part of Nix before and the C++ changes applied w/o conflicts. However, it got reverted then because people didn't want to merge lazy-trees against it which was supposed to be merged soon back in October 2022. Fixes: https://git.lix.systems/lix-project/lix/issues/201 Change-Id: I5ddef914135b695717b2ef88862d57ced5e7aa3c
- Loading branch information
Showing
3 changed files
with
115 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
synopsis: Fix nested flake input `follows` | ||
prs: 6621 | ||
cls: 994 | ||
--- | ||
|
||
Previously nested-input overrides were ignored; that is, the following did not | ||
override anything, in spite of the `nix3-flake` manual documenting it working: | ||
|
||
``` | ||
{ | ||
inputs = { | ||
foo.url = "github:bar/foo"; | ||
foo.inputs.bar.inputs.nixpkgs = "nixpkgs"; | ||
}; | ||
} | ||
``` | ||
|
||
This is useful to avoid the 1000 instances of nixpkgs problem without having | ||
each flake in the dependency tree to expose all of its transitive dependencies | ||
for modification. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters