aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/fetch-settings.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-01 01:29:34 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-01 01:39:25 +0000
commitea71da395fe23fc0b4adb6fe5075742441e8baf8 (patch)
tree87a6b57e5b031e66db781fc7c5bc97facb7584d2 /src/libfetchers/fetch-settings.cc
parent1c985428c4783568bcfb4692c6ce816eb5c5c31d (diff)
Move some stuff from `Settings` to a new `FetchSettings`.
Starting work on #5638 The exact boundary between `FetchSettings` and `EvalSettings` is not clear to me, but that's fine. First lets clean out `libstore`, and then worry about what, if anything, should be the separation between those two.
Diffstat (limited to 'src/libfetchers/fetch-settings.cc')
-rw-r--r--src/libfetchers/fetch-settings.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libfetchers/fetch-settings.cc b/src/libfetchers/fetch-settings.cc
new file mode 100644
index 000000000..e7d5244dc
--- /dev/null
+++ b/src/libfetchers/fetch-settings.cc
@@ -0,0 +1,13 @@
+#include "fetch-settings.hh"
+
+namespace nix {
+
+FetchSettings::FetchSettings()
+{
+}
+
+FetchSettings fetchSettings;
+
+static GlobalConfig::Register rFetchSettings(&fetchSettings);
+
+}