Open Kha opened 1 year ago
Is the order really arbitrary or is it sorted by store path?
I think they are in fact sorted by derivation name (DerivationGoal::key
more specifically), but that sounds still pretty arbitrary to me :)
Hi, is this issue still being tracked? I think at least the documentation should be changed to reflect the sorting order. Right now it states:
Each symlink has a suffix -
- , where N is the index of the installable (with the left-most installable having index 0), and outname is the symbolic derivation output name (e.g. bin, dev or lib). - is omitted if N = 0, and - is omitted if outname = out (denoting the default output).
Describe the bug
nix build
creates symlinks with suffixes-1
,-2
, ... when given multiple installables, but not necessarily in an order corresponding to the order given on the cmdlineSteps To Reproduce
Expected behavior
result
should be the result of the first given installable etc.nix-env --version
outputnix-env (Nix) 2.11.0
Priorities
Add :+1: to issues you find important.