From 4f02255c205378427f5831463c0c07e45382b2b2 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 5 Jun 2024 06:02:18 +0200 Subject: libstore: remove static initializers for Store registrations Ref #359. Change-Id: Ia45530ddee25fa9fc399ff10738bb0d8bbc8b221 --- src/libstore/legacy-ssh-store.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libstore/legacy-ssh-store.cc') 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 regLegacySSHStore; +void registerLegacySSHStore() { + StoreImplementations::add(); +} } -- cgit v1.2.3