lix/tests/unit
Rebecca Turner b63d4a0c62
Remove static initializers for RegisterLegacyCommand
This moves the "legacy"/"nix2" commands under a new `src/legacy/`
directory, instead of being scattered around in a bunch of different
directories.

A new `liblegacy` build target is defined, and the `nix` binary is
linked against it.

Then, `RegisterLegacyCommand` is replaced with `LegacyCommand::add`
calls in functions like `registerNixCollectGarbage()`. These
registration functions are called explicitly in `src/nix/main.cc`.

See: #359

Change-Id: Id450ffc3f793374907599cfcc121863b792aac1a
2024-10-01 16:08:58 -07:00
..
libcmd util.hh: Delete remaining file and clean up headers 2024-05-29 12:38:51 +02:00
libexpr libexpr: Deprecate URL literals 2024-08-17 20:31:57 +02:00
libexpr-support/tests libexpr: Introduce Deprecated features 2024-08-17 19:47:51 +02:00
libmain main: log stack traces for std::terminate 2024-09-25 14:03:45 -07:00
libstore tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
libstore-support/tests Test including relative paths in configuration 2024-09-01 15:52:48 -07:00
libutil libutil: add async collection mechanism 2024-09-26 16:56:08 +00:00
libutil-support/tests Test including relative paths in configuration 2024-09-01 15:52:48 -07:00
meson.build Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00