tvl-depot/third_party/nix/src/libstore
Griffin Smith a79df261b4 feat(3p/nix/nix-daemon): Implement Worker::BuildDerivation handler
Implement the proto handler on the server side for
Worker::BuildDerivation. This includes several additions to the proto
which I had missed on the first pass, including the actual proto
definition for the Derivation itself and a few sequence number
reorderings which are fine because this is all provisional and not
deployed yet.

A couple things to note

- I implemented a couple constructors for nix classes that initialize
  themselves based on their proto variants, which felt nice and didn't
  end up causing any issues.
- I've made the conversions between the enum types in nix and in proto
  explicit via switch statements rather than using a static_cast, out of
  an abundance of caution that the error would get mismatched in the
  future and we'd convert the wrong thing to the wrong thing - this is
  verbose, but exceptionally future proof.

Change-Id: Iecf6b88e76bc37e49efa05fd65d6cd0cb0deffed
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1249
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: Kane York <rikingcoding@gmail.com>
2020-07-18 19:52:23 +00:00
..
builtins refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
binary-cache-store.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
binary-cache-store.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
build.cc fix(3p/nix): passAsFile: leave out the hash prefix 2020-05-31 19:20:24 +01:00
builtins.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
CMakeLists.txt chore(3p/nix/libstore): Link to nixproto library 2020-07-05 19:17:12 +00:00
crypto.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
crypto.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
derivations.cc feat(3p/nix/nix-daemon): Implement Worker::BuildDerivation handler 2020-07-18 19:52:23 +00:00
derivations.hh feat(3p/nix/nix-daemon): Implement Worker::BuildDerivation handler 2020-07-18 19:52:23 +00:00
download.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
download.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
export-import.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
fs-accessor.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
gc.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
globals.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
globals.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
http-binary-cache-store.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
legacy-ssh-store.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
local-binary-cache-store.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
local-fs-store.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
local-store.cc chore(3p/nix): Clean up some unused defines 2020-05-30 23:17:48 +01:00
local-store.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
machines.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
machines.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
misc.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
nar-accessor.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
nar-accessor.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
nar-info-disk-cache.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
nar-info-disk-cache.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
nar-info.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
nar-info.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
nix-store.pc.in feat(3p/nix): install pkgconfig files for libexpr, libmain and libstore 2020-06-21 20:42:28 +00:00
optimise-store.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
parsed-derivations.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
parsed-derivations.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
pathlocks.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
pathlocks.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
profiles.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
profiles.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
references.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
references.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
remote-fs-accessor.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
remote-fs-accessor.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
remote-store.cc chore(3p/nix): Clean up some unused defines 2020-05-30 23:17:48 +01:00
remote-store.hh chore(3p/nix): Add missing override to UDSRemoteStore::sameMachine 2020-07-18 19:22:46 +00:00
s3-binary-cache-store.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
s3-binary-cache-store.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
s3.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
sandbox-defaults.sb Add 'third_party/nix/' from commit 'be66c7a6b24e3c3c6157fd37b86c7203d14acf10' 2020-05-17 15:52:38 +01:00
sandbox-minimal.sb Add 'third_party/nix/' from commit 'be66c7a6b24e3c3c6157fd37b86c7203d14acf10' 2020-05-17 15:52:38 +01:00
sandbox-network.sb Add 'third_party/nix/' from commit 'be66c7a6b24e3c3c6157fd37b86c7203d14acf10' 2020-05-17 15:52:38 +01:00
schema.sql Add 'third_party/nix/' from commit 'be66c7a6b24e3c3c6157fd37b86c7203d14acf10' 2020-05-17 15:52:38 +01:00
serve-protocol.hh style(3p/nix): Reformat project in Google C++ style 2020-05-17 16:31:57 +01:00
sqlite.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
sqlite.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
ssh-store.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
ssh.cc refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
ssh.hh refactor(3p/nix): Anchor local includes at src/ 2020-05-27 21:56:34 +01:00
store-api.cc feat(3p/nix/nix-daemon): Implement Worker::BuildDerivation handler 2020-07-18 19:52:23 +00:00
store-api.hh feat(3p/nix/nix-daemon): Implement Worker::BuildDerivation handler 2020-07-18 19:52:23 +00:00
worker-protocol.hh refactor(3p/nix/libexpr): Back Nix lists with std::vector 2020-07-18 18:08:42 +00:00