2017-10-24 13:45:11 +03:00
|
|
|
#pragma once
|
2023-04-01 06:18:41 +03:00
|
|
|
///@file
|
2017-10-24 13:45:11 +03:00
|
|
|
|
|
|
|
#include "args.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
class Store;
|
|
|
|
class EvalState;
|
2017-11-01 22:32:30 +02:00
|
|
|
class Bindings;
|
2017-10-24 13:45:11 +03:00
|
|
|
|
|
|
|
struct MixEvalArgs : virtual Args
|
|
|
|
{
|
2022-10-12 16:09:00 +03:00
|
|
|
static constexpr auto category = "Common evaluation options";
|
|
|
|
|
2017-10-24 13:45:11 +03:00
|
|
|
MixEvalArgs();
|
|
|
|
|
|
|
|
Bindings * getAutoArgs(EvalState & state);
|
|
|
|
|
|
|
|
Strings searchPath;
|
|
|
|
|
2021-07-15 15:28:33 +03:00
|
|
|
std::optional<std::string> evalStoreUrl;
|
2017-10-24 13:45:11 +03:00
|
|
|
|
2021-07-15 15:28:33 +03:00
|
|
|
private:
|
2017-10-24 13:45:11 +03:00
|
|
|
std::map<std::string, std::string> autoArgs;
|
|
|
|
};
|
|
|
|
|
2022-02-25 17:00:00 +02:00
|
|
|
Path lookupFileArg(EvalState & state, std::string_view s);
|
2017-10-24 13:45:11 +03:00
|
|
|
|
|
|
|
}
|