diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-06-21 19:04:58 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-06-21 19:04:58 +0200 |
commit | d4fe9daed6f48ebdcea18a1952cbecd30a846e70 (patch) | |
tree | 073efc12b13ca8bc9950837db81f2d2baf0f9dec /src/libexpr/flake/flake.hh | |
parent | aa2846198f46c1260a91a6bf21a2f53997f1f274 (diff) |
Simplify getFlake() / fetchFlake() logic
Diffstat (limited to 'src/libexpr/flake/flake.hh')
-rw-r--r-- | src/libexpr/flake/flake.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libexpr/flake/flake.hh b/src/libexpr/flake/flake.hh index 81b6541f0..de0feb2c4 100644 --- a/src/libexpr/flake/flake.hh +++ b/src/libexpr/flake/flake.hh @@ -81,7 +81,14 @@ struct NonFlake : originalRef(origRef), sourceInfo(sourceInfo) {}; }; -Flake getFlake(EvalState &, const FlakeRef &, bool impureIsAllowed); +Flake getFlake(EvalState &, const FlakeRef &); + +/* If 'allowLookup' is true, then resolve 'flakeRef' using the + registries. */ +FlakeRef maybeLookupFlake( + EvalState & state, + const FlakeRef & flakeRef, + bool allowLookup); /* Fingerprint of a locked flake; used as a cache key. */ typedef Hash Fingerprint; |