#pragma once ///@file #include "args.hh" #include "canon-path.hh" #include "common-args.hh" #include "search-path.hh" namespace nix { class Store; class EvalState; class Bindings; struct SourcePath; struct MixEvalArgs : virtual Args, virtual MixRepair { static constexpr auto category = "Common evaluation options"; MixEvalArgs(); Bindings * getAutoArgs(EvalState & state); SearchPath searchPath; std::optional evalStoreUrl; private: struct AutoArgExpr { std::string expr; }; struct AutoArgString { std::string s; }; using AutoArg = std::variant; std::map autoArgs; }; SourcePath lookupFileArg(EvalState & state, std::string_view s, const Path * baseDir = nullptr); }