1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 13:11:00 +01:00
nix/src/libstore/build
regnat 58cdab64ac Store metadata about drv outputs realisations
For each known realisation, store:
- its output
- its output path

This comes with a set of needed changes:

- New `realisations` module declaring the types needed for describing
  these mappings
- New `Store::registerDrvOutput` method registering all the needed informations
  about a derivation output (also replaces `LocalStore::linkDeriverToPath`)
- new `Store::queryRealisation` method to retrieve the informations for a
  derivations

This introcudes some redundancy on the remote-store side between
`wopQueryDerivationOutputMap` and `wopQueryRealisation`.
However we might need to keep both (regardless of backwards compat)
because we sometimes need to get some infos for all the outputs of a
derivation (where `wopQueryDerivationOutputMap` is handy), but all the
stores can't implement it − because listing all the outputs of a
derivation isn't really possible for binary caches where the server
doesn't allow to list a directory.
2020-12-11 20:41:32 +01:00
..
derivation-goal.cc Store metadata about drv outputs realisations 2020-12-11 20:41:32 +01:00
derivation-goal.hh Move primeCache() to Worker::run() 2020-12-01 13:44:48 +01:00
goal.cc Change .cc files to use split build headers 2020-10-12 17:08:52 +00:00
goal.hh shut up clang warnings 2020-12-01 15:04:03 +01:00
hook-instance.cc Change .cc files to use split build headers 2020-10-12 17:08:52 +00:00
hook-instance.hh Trim hook-instance.hh 2020-10-12 17:16:13 +00:00
local-store-build.cc Move primeCache() to Worker::run() 2020-12-01 13:44:48 +01:00
substitution-goal.cc Change .cc files to use split build headers 2020-10-12 17:08:52 +00:00
substitution-goal.hh Move primeCache() to Worker::run() 2020-12-01 13:44:48 +01:00
worker.cc Don't fail early when -j0 is passed 2020-12-03 13:24:36 +01:00
worker.hh shut up clang warnings 2020-12-01 15:04:03 +01:00