-
Non-flake inputs now contain a
sourceInfoattribute #13164 #13170Flakes have always a
sourceInfoattribute which describes the source of the flake. ThesourceInfo.outPathis often identical to the flake'soutPath, however it can differ when the flake is located in a subdirectory of its source.Non-flake inputs (i.e. inputs with
flake = false) can also be located at some path within a wider source. This usually happens when defining a relative path input within the same source as the parent flake, e.g.inputs.foo.url = ./some-file.nix. Such relative inputs will now inherit their parent'ssourceInfo.This also means it is now possible to use
?dir=subdiron non-flake inputs.This iterates on the work done in 2.26 to improve relative path support (#10089), and resolves a regression introduced in 2.28 relating to nested relative path inputs (#13164).