Open Artturin opened 2 years ago
Can confirm that this, too, breaks in exactly the same way on master and on https://github.com/NixOS/nix/commit/404c222444b4c8c60148ccf890cd41611f26b0a0 (merge of #6426) yet works on https://github.com/NixOS/nix/commit/cae7473884d358e4c106f333684f4f771dddc1e2 (just before merge).
I think these are two separate issues:
nix why-depends nixpkgs#foo^bar,baz nixpkgs#spam^bacon,eggs
does it? Which of the four possible dependencies should Nix explain? Yet this is exactly the sort of question being asked here. This merits a doc change IMO; the underlying reality of outputs is leaking from the concept of installables. I would actually also suggest defining this question to mean “why do I get either spam^bacon
or spam^eggs
when I install both foo^bar
and foo^baz
?”, but this needs careful thought (@edolstra?). All in all, an unpleasant implication of the recent changes, but not an implementation bug.nix develop
is just straightforwardly broken, but given #6449 fixing it should be a one-line change. Stay tuned.$ nix why-depends ".#sway-unwrapped" ".#xorg.libxcb" --all --precise
error: argument 'git+file:///home/artturin/nixgits/my-nixpkgs#xorg.libxcb' should evaluate to one store path
$ nix why-depends ".#sway-unwrapped" ".#xorg.libxcb^dev" --all --precise
/nix/store/qnr0nyczahljj1n7djvbbc0573s0lai9-sway-unwrapped-1.7
└───bin/sway: …-libinput-1.20.1/lib:/nix/store/dfk67dlnhfd0l4b7yv204j6vl6xy73d7-wlroots-0.15.1/lib:/nix/store/m…
→ /nix/store/dfk67dlnhfd0l4b7yv204j6vl6xy73d7-wlroots-0.15.1
└───lib/libwlroots.so.10: …cb-util-wm-0.4.1/lib:/nix/store/0wlvm44fyr6da539fafs1y3l315ifh22-xcb-util-errors-1.0/lib:/nix/st…
→ /nix/store/0wlvm44fyr6da539fafs1y3l315ifh22-xcb-util-errors-1.0
└───nix-support/propagated-build-inputs: …/nix/store/sl59xf3jpvynkxbvmvf2g4kyyijrr14v-libxcb-1.14-dev …
→ /nix/store/sl59xf3jpvynkxbvmvf2g4kyyijrr14v-libxcb-1.14-dev
a better error message would be nice
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/tweag-nix-dev-update-30/19112/1