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"
|
2023-04-28 17:57:37 +03:00
|
|
|
#include "common-args.hh"
|
2023-06-23 20:51:25 +03:00
|
|
|
#include "search-path.hh"
|
2017-10-24 13:45:11 +03:00
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
class Store;
|
|
|
|
class EvalState;
|
2017-11-01 22:32:30 +02:00
|
|
|
class Bindings;
|
2023-04-06 14:15:50 +03:00
|
|
|
struct SourcePath;
|
2017-10-24 13:45:11 +03:00
|
|
|
|
2023-04-28 17:57:37 +03:00
|
|
|
struct MixEvalArgs : virtual Args, virtual MixRepair
|
2017-10-24 13:45:11 +03:00
|
|
|
{
|
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);
|
|
|
|
|
2023-06-23 20:51:25 +03:00
|
|
|
SearchPath searchPath;
|
2017-10-24 13:45:11 +03:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2023-04-06 14:15:50 +03:00
|
|
|
SourcePath lookupFileArg(EvalState & state, std::string_view s);
|
2017-10-24 13:45:11 +03:00
|
|
|
|
|
|
|
}
|