Skip to content

User registry ignored on nix eval and nix build #13050

@SharzyL

Description

@SharzyL

Describe the bug

Since #12979 not only the behavior of locking is changed, but also the behavior of nix build and nix eval.

Steps To Reproduce

$ nix --version
nix (Nix) 2.28.1
$ nix registry add p nixpkgs
$ nix eval p#path
/nix/store/0d3h8gi2q46fb4l563h6pginjw2a90r4-source
$ nix --version
nix (Nix) 2.29.0pre20250418_f683a55
$ nix registry add p nixpkgs
$ nix eval p#path
error: cannot find flake 'flake:p' in the flake registries

Expected behavior

nix build and nix eval should also respect the user registry.

Metadata

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugregressionSomething doesn't work anymore
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions