mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-16 03:06:17 +02:00
cc68ed8ff7
This will allow a different base directory to be used, matching a shebang script location instead of the working directory.
34 lines
639 B
C++
34 lines
639 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "args.hh"
|
|
#include "canon-path.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, CanonPath baseDir = CanonPath::fromCwd());
|
|
|
|
}
|