1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-19 23:41:07 +01:00

Persistently cache InputAccessor::fetchToStore()

This especially speeds up repeated evaluations that copy a large
source tree (e.g. 'nix.nixPath = [ "nixpkgs=${nixpkgs}" ];').
This commit is contained in:
Eelco Dolstra 2022-08-11 20:34:27 +02:00
parent 2e0d63caf6
commit beac2e67cd
4 changed files with 34 additions and 6 deletions

View file

@ -141,8 +141,7 @@ struct InputScheme
virtual std::optional<CanonPath> isRelative(const Input & input) const
{ return std::nullopt; }
virtual std::optional<std::string> getFingerprint(ref<Store> store, const Input & input) const
{ return std::nullopt; }
virtual std::optional<std::string> getFingerprint(ref<Store> store, const Input & input) const;
};
void registerInputScheme(std::shared_ptr<InputScheme> && fetcher);