1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Fix formatting

This commit is contained in:
Eelco Dolstra 2024-07-16 16:37:57 +02:00
parent 042c2ae3ac
commit 855e716324

View file

@ -25,7 +25,8 @@ static LockedFlake getBuiltinDefaultSchemasFlake(EvalState & state)
state.allowPath(storePath);
// Construct a dummy flakeref.
auto flakeRef = parseFlakeRef(fetchSettings,
auto flakeRef = parseFlakeRef(
fetchSettings,
fmt("tarball+https://builtin-flake-schemas?narHash=%s",
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"
;
auto lockedDefaultSchemasFlake =
defaultSchemasFlake ? flake::lockFlake(flakeSettings, state, *defaultSchemasFlake, {}) : getBuiltinDefaultSchemasFlake(state);
auto lockedDefaultSchemasFlake = defaultSchemasFlake
? flake::lockFlake(flakeSettings, state, *defaultSchemasFlake, {})
: getBuiltinDefaultSchemasFlake(state);
auto lockedDefaultSchemasFlakeFingerprint = lockedDefaultSchemasFlake.getFingerprint(state.store);
std::optional<Fingerprint> fingerprint2;