lix/src/legacy
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
..
build-remote.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
build-remote.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
buildenv.nix Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
dotgraph.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
dotgraph.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
graphml.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
graphml.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
meson.build Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-build.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-build.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-channel.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-channel.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-collect-garbage.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-collect-garbage.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-copy-closure.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-copy-closure.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-env.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-env.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-instantiate.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-instantiate.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-store.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
nix-store.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
unpack-channel.nix Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
user-env.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
user-env.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00