refactor(3p/nix): Build nix-daemon as a separate binary

Skips over all the monobinary stuff and moves to a separate binary for
nix-daemon.

This also replaces the flag parsing logic with absl::flags. This
causes a behaviour change for --help, which no longer tries to display
a man page but instead shows the actual command-line help.

Note: This binary no longer links to the Boehm GC.

Change-Id: Ib852e994b82f2d56e91262878c10650e656427a9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1622
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2020-08-03 19:05:29 +01:00 committed by tazjin
parent 229c1ed820
commit 1f12544179
4 changed files with 44 additions and 32 deletions

View file

@ -10,6 +10,7 @@ add_subdirectory(libutil)
add_subdirectory(libstore)
add_subdirectory(libmain)
add_subdirectory(libexpr)
add_subdirectory(nix-daemon)
if (PACKAGE_TESTS)
add_subdirectory(tests)
@ -61,8 +62,6 @@ target_sources(nix
nix-channel/nix-channel.cc
nix-collect-garbage/nix-collect-garbage.cc
nix-copy-closure/nix-copy-closure.cc
nix-daemon/nix-daemon-proto.cc
nix-daemon/nix-daemon-main.cc
nix-env/nix-env.cc
nix-env/user-env.cc
nix-instantiate/nix-instantiate.cc