Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
common-eval-args.hh
Go to the documentation of this file.
1#pragma once
3
5#include "lix/libexpr/eval.hh"
6#include "lix/libutil/args.hh"
9
10namespace nix {
11
12class Store;
13class EvalState;
14class Bindings;
15struct SourcePath;
16
17struct MixEvalArgs : virtual Args, virtual MixRepair
18{
19 static constexpr auto category = "Common evaluation options";
20
21 MixEvalArgs();
22
23 Bindings * getAutoArgs(Evaluator & state);
24
25 SearchPath searchPath;
26
27 std::optional<std::string> evalStoreUrl;
28
29private:
30 std::map<std::string, std::string> autoArgs;
31};
32
53kj::Promise<Result<EvalPaths::PathResult<SourcePath, ThrownError>>>
54lookupFileArg(Evaluator & state, std::string_view fileArg);
55
56}
Definition args.hh:31
Definition attr-set.hh:48
Definition eval.hh:685
Definition eval.hh:533
Definition store-api.hh:195
Definition search-path.hh:16
Definition source-path.hh:23