2017-10-24 12:45:11 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-05-27 21:56:34 +01:00
|
|
|
#include "libutil/args.hh"
|
2017-10-24 12:45:11 +02:00
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
class Store;
|
|
|
|
class EvalState;
|
2017-11-01 21:32:30 +01:00
|
|
|
class Bindings;
|
2017-10-24 12:45:11 +02:00
|
|
|
|
2020-05-17 16:31:57 +01:00
|
|
|
struct MixEvalArgs : virtual Args {
|
|
|
|
MixEvalArgs();
|
2017-10-24 12:45:11 +02:00
|
|
|
|
2020-05-17 16:31:57 +01:00
|
|
|
Bindings* getAutoArgs(EvalState& state);
|
2017-10-24 12:45:11 +02:00
|
|
|
|
2020-05-17 16:31:57 +01:00
|
|
|
Strings searchPath;
|
2017-10-24 12:45:11 +02:00
|
|
|
|
2020-05-17 16:31:57 +01:00
|
|
|
private:
|
|
|
|
std::map<std::string, std::string> autoArgs;
|
2017-10-24 12:45:11 +02:00
|
|
|
};
|
|
|
|
|
2020-05-21 05:43:22 +01:00
|
|
|
Path lookupFileArg(EvalState& state, std::string s);
|
2017-10-24 12:45:11 +02:00
|
|
|
|
2020-05-17 16:31:57 +01:00
|
|
|
} // namespace nix
|