mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Fix formatting
This commit is contained in:
parent
042c2ae3ac
commit
855e716324
1 changed files with 5 additions and 3 deletions
|
@ -25,7 +25,8 @@ static LockedFlake getBuiltinDefaultSchemasFlake(EvalState & state)
|
||||||
state.allowPath(storePath);
|
state.allowPath(storePath);
|
||||||
|
|
||||||
// Construct a dummy flakeref.
|
// Construct a dummy flakeref.
|
||||||
auto flakeRef = parseFlakeRef(fetchSettings,
|
auto flakeRef = parseFlakeRef(
|
||||||
|
fetchSettings,
|
||||||
fmt("tarball+https://builtin-flake-schemas?narHash=%s",
|
fmt("tarball+https://builtin-flake-schemas?narHash=%s",
|
||||||
state.store->queryPathInfo(storePath)->narHash.to_string(HashFormat::SRI, true)));
|
state.store->queryPathInfo(storePath)->narHash.to_string(HashFormat::SRI, true)));
|
||||||
|
|
||||||
|
@ -43,8 +44,9 @@ call(EvalState & state, std::shared_ptr<flake::LockedFlake> lockedFlake, std::op
|
||||||
#include "call-flake-schemas.nix.gen.hh"
|
#include "call-flake-schemas.nix.gen.hh"
|
||||||
;
|
;
|
||||||
|
|
||||||
auto lockedDefaultSchemasFlake =
|
auto lockedDefaultSchemasFlake = defaultSchemasFlake
|
||||||
defaultSchemasFlake ? flake::lockFlake(flakeSettings, state, *defaultSchemasFlake, {}) : getBuiltinDefaultSchemasFlake(state);
|
? flake::lockFlake(flakeSettings, state, *defaultSchemasFlake, {})
|
||||||
|
: getBuiltinDefaultSchemasFlake(state);
|
||||||
auto lockedDefaultSchemasFlakeFingerprint = lockedDefaultSchemasFlake.getFingerprint(state.store);
|
auto lockedDefaultSchemasFlakeFingerprint = lockedDefaultSchemasFlake.getFingerprint(state.store);
|
||||||
|
|
||||||
std::optional<Fingerprint> fingerprint2;
|
std::optional<Fingerprint> fingerprint2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue