diff options
Diffstat (limited to 'src/libexpr/common-opts.hh')
-rw-r--r-- | src/libexpr/common-opts.hh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libexpr/common-opts.hh b/src/libexpr/common-opts.hh new file mode 100644 index 000000000000..cb2732d6fe7e --- /dev/null +++ b/src/libexpr/common-opts.hh @@ -0,0 +1,20 @@ +#pragma once + +#include "eval.hh" + +namespace nix { + +class Store; + +/* Some common option parsing between nix-env and nix-instantiate. */ +bool parseAutoArgs(Strings::iterator & i, + const Strings::iterator & argsEnd, std::map<string, string> & res); + +Bindings * evalAutoArgs(EvalState & state, std::map<string, string> & in); + +bool parseSearchPathArg(Strings::iterator & i, + const Strings::iterator & argsEnd, Strings & searchPath); + +Path lookupFileArg(EvalState & state, string s); + +} |