Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
MithicSpirit opened this issue Dec 18, 2024 · 0 comments
Open
2 tasks done

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

MithicSpirit opened this issue Dec 18, 2024 · 0 comments

Comments

@MithicSpirit
Copy link

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.

@roberth roberth added the flakes label Dec 18, 2024
@roberth roberth added this to the flakes stabilisation milestone Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants