mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 10:16:15 +02:00
be518e73ae
- Better types - Own header / C++ file pair - Test factored out methods - Pass parsed thing around more than strings Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
33 lines
572 B
C++
33 lines
572 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "args.hh"
|
|
#include "common-args.hh"
|
|
#include "search-path.hh"
|
|
|
|
namespace nix {
|
|
|
|
class Store;
|
|
class EvalState;
|
|
class Bindings;
|
|
struct SourcePath;
|
|
|
|
struct MixEvalArgs : virtual Args, virtual MixRepair
|
|
{
|
|
static constexpr auto category = "Common evaluation options";
|
|
|
|
MixEvalArgs();
|
|
|
|
Bindings * getAutoArgs(EvalState & state);
|
|
|
|
SearchPath searchPath;
|
|
|
|
std::optional<std::string> evalStoreUrl;
|
|
|
|
private:
|
|
std::map<std::string, std::string> autoArgs;
|
|
};
|
|
|
|
SourcePath lookupFileArg(EvalState & state, std::string_view s);
|
|
|
|
}
|