diff options
author | Pierre Bourdon <delroth@gmail.com> | 2024-06-05 06:02:18 +0200 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-08-26 16:27:31 -0700 |
commit | 4f02255c205378427f5831463c0c07e45382b2b2 (patch) | |
tree | 875efcf49a86ced24b37d72587bc4dfb153c4460 /src/libstore/legacy-ssh-store.cc | |
parent | ca08f1217d8779971d4f2b306a19ad5622360372 (diff) |
libstore: remove static initializers for Store registrations
Ref #359.
Change-Id: Ia45530ddee25fa9fc399ff10738bb0d8bbc8b221
Diffstat (limited to 'src/libstore/legacy-ssh-store.cc')
-rw-r--r-- | src/libstore/legacy-ssh-store.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstore/legacy-ssh-store.cc b/src/libstore/legacy-ssh-store.cc index 5650282d6..9e2d65a1c 100644 --- a/src/libstore/legacy-ssh-store.cc +++ b/src/libstore/legacy-ssh-store.cc @@ -1,4 +1,4 @@ -#include "ssh-store-config.hh" +#include "legacy-ssh-store.hh" #include "archive.hh" #include "pool.hh" #include "remote-store.hh" @@ -8,6 +8,7 @@ #include "store-api.hh" #include "path-with-outputs.hh" #include "ssh.hh" +#include "ssh-store.hh" #include "derivations.hh" namespace nix { @@ -412,6 +413,8 @@ public: { unsupported("queryRealisation"); } }; -static RegisterStoreImplementation<LegacySSHStore, LegacySSHStoreConfig> regLegacySSHStore; +void registerLegacySSHStore() { + StoreImplementations::add<LegacySSHStore, LegacySSHStoreConfig>(); +} } |