Open roberth opened 1 year ago
path-info has similar problems:
➜ nix path-info --json --derivation --extra-experimental-features "nix-command flakes" /nix/var/nix/profiles/system-123-link/
error: '/nix/store/60xn4zmr9fj87gfh18p0xkwj9fkrr7cx-nixos-system-host-23.11' does not have a known deriver
https://github.com/NixOS/nix/pull/8594 the solution is around the corner
Describe the bug
When the second path of
why-depends
is not an output but a source, the command fails.Note that source-ness of a path is not an intrinsic property, highlighting that
--derivation
makes thewhy-depends
logic trickier than strictly necessary.Steps To Reproduce
Construed example. Not a lot of
Open
nix repl .
innixpkgs
.Expected behavior
Do not look for a deriver of a source; just report the chain.
--derivation
is on the way out, so this issue is mostly to document this specific use case.nix-env --version
outputAdditional context
Add any other context about the problem here.
Priorities
Add :+1: to issues you find important.