Open
Description
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
- checked latest Nix manual (source)
- checked open bug issues and pull requests for possible duplicates
Add 👍 to issues you find important.