diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-03-30 14:03:28 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-03-30 14:04:53 +0200 |
commit | e0a0ae0467fa8cdcc542f593b9d94283f04508ff (patch) | |
tree | 9ee49c40c301f51c4f20a0d9ad2031c7de001100 /src/libexpr/flake | |
parent | 4ba4c7ff66c95319d98fa859428f60f30f94edd4 (diff) |
Move fetchers from libstore to libfetchers
Diffstat (limited to 'src/libexpr/flake')
-rw-r--r-- | src/libexpr/flake/flake.cc | 2 | ||||
-rw-r--r-- | src/libexpr/flake/flakeref.cc | 7 | ||||
-rw-r--r-- | src/libexpr/flake/flakeref.hh | 2 | ||||
-rw-r--r-- | src/libexpr/flake/lockfile.cc | 3 |
4 files changed, 6 insertions, 8 deletions
diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc index 9517e3645..59362c018 100644 --- a/src/libexpr/flake/flake.cc +++ b/src/libexpr/flake/flake.cc @@ -3,7 +3,7 @@ #include "primops.hh" #include "eval-inline.hh" #include "store-api.hh" -#include "fetchers/fetchers.hh" +#include "fetchers.hh" #include "finally.hh" namespace nix { diff --git a/src/libexpr/flake/flakeref.cc b/src/libexpr/flake/flakeref.cc index 5c38f7ea5..de91f2eed 100644 --- a/src/libexpr/flake/flakeref.cc +++ b/src/libexpr/flake/flakeref.cc @@ -1,9 +1,8 @@ #include "flakeref.hh" #include "store-api.hh" -#include "fetchers/parse.hh" -#include "fetchers/fetchers.hh" -#include "fetchers/registry.hh" -#include "fetchers/regex.hh" +#include "url.hh" +#include "fetchers.hh" +#include "registry.hh" namespace nix { diff --git a/src/libexpr/flake/flakeref.hh b/src/libexpr/flake/flakeref.hh index d23a8f601..1dbb6e54d 100644 --- a/src/libexpr/flake/flakeref.hh +++ b/src/libexpr/flake/flakeref.hh @@ -2,7 +2,7 @@ #include "types.hh" #include "hash.hh" -#include "fetchers/fetchers.hh" +#include "fetchers.hh" #include <variant> diff --git a/src/libexpr/flake/lockfile.cc b/src/libexpr/flake/lockfile.cc index ee04ec64f..f73b1ac25 100644 --- a/src/libexpr/flake/lockfile.cc +++ b/src/libexpr/flake/lockfile.cc @@ -1,6 +1,5 @@ #include "lockfile.hh" #include "store-api.hh" -#include "fetchers/regex.hh" #include <nlohmann/json.hpp> @@ -268,7 +267,7 @@ InputPath parseInputPath(std::string_view s) InputPath path; for (auto & elem : tokenizeString<std::vector<std::string>>(s, "/")) { - if (!std::regex_match(elem, fetchers::flakeIdRegex)) + if (!std::regex_match(elem, flakeIdRegex)) throw Error("invalid flake input path element '%s'", elem); path.push_back(elem); } |