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