Skip to content

Can't chain flake inputs when overriding with follows. #12083

Open
@MithicSpirit

Description

@MithicSpirit

Describe the bug

I can't chain multiple inputs. when specifying a .follows.

Steps To Reproduce

Using this flake.nix, the systems are still duplicated in the lockfile. In particular, inputs.flake-utils.inputs.systems.follows = "systems" seems to have no effect.

{
  description = "foo";
  inputs = {

    systems.url = "github:nix-systems/default";

    lanzaboote = {
      url = "github:nix-community/lanzaboote/v0.4.1";
      inputs.flake-utils.inputs.systems.follows = "systems";
    };

  };
  outputs = _: {};
}

Expected behavior

The systems inputs should not be duplicated. Note that the documentation states that this should be allowed: “Transitive inputs can be overridden from a flake.nix file” and “Overrides and follows can be combined” suggest that the inputs. can chain unboundedly.

Metadata

nix-env (Nix) 2.25.2

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions