aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r--src/libstore/globals.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index 6cfa3ffac..b534882de 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -33,6 +33,16 @@
#include <sys/sysctl.h>
#endif
+// All built-in store implementations.
+#include "dummy-store.hh"
+#include "http-binary-cache-store.hh"
+#include "legacy-ssh-store.hh"
+#include "local-binary-cache-store.hh"
+#include "local-store.hh"
+#include "s3-binary-cache-store.hh"
+#include "ssh-store.hh"
+#include "uds-remote-store.hh"
+
namespace nix {
@@ -396,6 +406,17 @@ static void preloadNSS()
});
}
+static void registerStoreImplementations() {
+ registerDummyStore();
+ registerHttpBinaryCacheStore();
+ registerLegacySSHStore();
+ registerLocalBinaryCacheStore();
+ registerLocalStore();
+ registerS3BinaryCacheStore();
+ registerSSHStore();
+ registerUDSRemoteStore();
+}
+
static bool initLibStoreDone = false;
void assertLibStoreInitialized() {
@@ -433,6 +454,8 @@ void initLibStore() {
unsetenv("TMPDIR");
#endif
+ registerStoreImplementations();
+
initLibStoreDone = true;
}