Skip to content

All non-flake flake inputs have the same name suffix in the store. #13417

Open
@gleachkr

Description

@gleachkr

Describe the bug

I think this is expected behavior, but it seems undesirable. The name suffix of a non-flake flake input (an input like {url = ...; flake = false} in the store will just be source, so the full path to the input is /nix/store/SOME_HASH-source/. This causes name collisions, e.g. when trying to use srcs if more than one src is a non-flake input to a flake.

Expected behavior

It might be better to disambiguate the paths in some way. If the path needs to deterministically depend only on the input, maybe you could add an additional hash to the end?

Metadata

nix-env (Nix) 2.28.3

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions