mirror of
https://github.com/NixOS/nix
synced 2025-07-05 04:01:47 +02:00
Simplify getFlake() / fetchFlake() logic
This commit is contained in:
parent
aa2846198f
commit
d4fe9daed6
4 changed files with 46 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue