diff options
Diffstat (limited to 'src/libcmd/common-eval-args.hh')
-rw-r--r-- | src/libcmd/common-eval-args.hh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libcmd/common-eval-args.hh b/src/libcmd/common-eval-args.hh new file mode 100644 index 000000000..03fa226aa --- /dev/null +++ b/src/libcmd/common-eval-args.hh @@ -0,0 +1,27 @@ +#pragma once + +#include "args.hh" + +namespace nix { + +class Store; +class EvalState; +class Bindings; + +struct MixEvalArgs : virtual Args +{ + MixEvalArgs(); + + Bindings * getAutoArgs(EvalState & state); + + Strings searchPath; + + std::optional<std::string> evalStoreUrl; + +private: + std::map<std::string, std::string> autoArgs; +}; + +Path lookupFileArg(EvalState & state, std::string_view s); + +} |