lix/src/nix-env
Naïm Favier 5736661922
nix-env: always print output names in JSON and XML
The current `--out-path` flag has two disadvantages when one is only
concerned with querying the names of outputs:
- it requires evaluating every output's `outPath`, which takes
  significantly more resources and runs into more failures
- it destroys the information of the order of outputs so we can't tell
  which one is the main output

This patch makes the output names always present (replacing paths with
`null` in JSON if `--out-path` isn't given), and adds an `outputName`
field.
2022-03-16 21:26:19 +01:00
..
buildenv.nix Move some corepkgs into the nix binary 2020-03-11 16:57:48 +01:00
nix-env.cc nix-env: always print output names in JSON and XML 2022-03-16 21:26:19 +01:00
user-env.cc nix-env: always print output names in JSON and XML 2022-03-16 21:26:19 +01:00
user-env.hh Remove std::string alias (for real this time) 2022-02-25 16:13:02 +01:00