nix-super/src/libstore/build
John Ericson 68f4c728ec Split {,local-}derivation-goal.{cc,hh}
This separates the scheduling logic (including simple hook pathway) from
the local-store needing code.

This should be the final split for now. I'm reasonably happy with how
it's turning out, even before I'm done moving code into
`local-derivation-goal`. Benefits:

1. This will help "witness" that the hook case is indeed a lot simpler,
   and also compensate for the increased complexity that comes from
   content-addressed derivation outputs.

2. It also moves us ever so slightly towards a world where we could use
   off-the-shelf storage or sandboxing, since `local-derivation-goal`
   would be gutted in those cases, but `derivation-goal` should remain
   nearly the same.

The new `#if 0` in the new files will be deleted in the following
commit. I keep it here so if it turns out more stuff can be moved over,
it's easy to do so in a way that preserves ordering --- and thus
prevents conflicts.

N.B.
```sh
git diff HEAD^^ --color-moved --find-copies-harder --patience --stat
```
makes nicer output.
2021-02-26 16:10:26 +00:00
..
derivation-goal.cc Split {,local-}derivation-goal.{cc,hh} 2021-02-26 16:10:26 +00:00
derivation-goal.hh Split {,local-}derivation-goal.{cc,hh} 2021-02-26 16:10:26 +00:00
entry-points.cc Split {,local-}derivation-goal.{cc,hh} 2021-02-26 16:10:26 +00: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-derivation-goal.cc Split {,local-}derivation-goal.{cc,hh} 2021-02-26 16:10:26 +00:00
local-derivation-goal.hh Split {,local-}derivation-goal.{cc,hh} 2021-02-26 16:10:26 +00:00
substitution-goal.cc Merge pull request #4467 from edolstra/error-formatting 2021-01-25 12:50:57 +01:00
substitution-goal.hh Move primeCache() to Worker::run() 2020-12-01 13:44:48 +01:00
worker.cc Split {,local-}derivation-goal.{cc,hh} 2021-02-26 16:10:26 +00:00
worker.hh Crudely make worker only provide a Store, not LocalStore 2020-12-23 22:42:06 +00:00