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