lix/src
John Ericson 24866b71c4 Introduce SingleDrvOutputs
In many cases we are dealing with a collection of realisations, they are
all outputs of the same derivation. In that case, we don't need
"derivation hashes modulos" to be part of our map key, because the
output names alone will be unique. Those hashes are still part of the
realisation proper, so we aren't loosing any information, we're just
"normalizing our schema" by narrowing the "primary key".

Besides making our data model a bit "tighter" this allows us to avoid a
double `for` loop in `DerivationGoal::waiteeDone`. The inner `for` loop
was previously just to select the output we cared about without knowing
its hash. Now we can just select the output by name directly.

Note that neither protocol is changed as part of this: we are still
transferring `DrvOutputs` over the wire for `BuildResult`s. I would only
consider revising this once #6223 is merged, and we can mention protocol
versions inside factored-out serialization logic. Until then it is
better not change anything because it would come a the cost of code
reuse.
2023-04-15 12:51:19 -04:00
..
build-remote Introduce SingleDrvOutputs 2023-04-15 12:51:19 -04:00
libcmd Introduce SingleDrvOutputs 2023-04-15 12:51:19 -04:00
libexpr Merge pull request #8170 from tweag/fix-aarch64-build 2023-04-11 12:35:23 +02:00
libfetchers Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
libmain Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
libstore Introduce SingleDrvOutputs 2023-04-15 12:51:19 -04:00
libutil Merge pull request #8176 from tweag/rename-confusing-write-method 2023-04-14 10:44:36 +02:00
nix Start cross-referencing experimental features 2023-04-14 07:45:08 -04:00
nix-build Move enabled experimental feature to libutil struct 2023-03-20 11:05:22 -04:00
nix-channel Factor out the generation of the profile/channel directory 2023-03-23 10:22:42 +01:00
nix-collect-garbage Fix nix-collect-garbage -d with the new profile location 2023-03-07 13:08:04 +01:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
nix-instantiate Revert to copyStore = true for nix-instantiate and nix-env 2022-08-23 14:40:27 +02:00
nix-store Introduce SingleDrvOutputs 2023-04-15 12:51:19 -04:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00