12#include <nlohmann/json_fwd.hpp>
91using _SingleDerivedPathRaw = std::variant<DerivedPathOpaque, SingleDerivedPathBuilt>;
106 using Raw = _SingleDerivedPathRaw;
112 inline const Raw & raw()
const
114 return static_cast<const Raw &
>(*this);
169 return make_ref<SingleDerivedPath>(SingleDerivedPath::Opaque{drvPath});
225using _DerivedPathRaw = std::variant<DerivedPathOpaque, DerivedPathBuilt>;
239 using Raw = _DerivedPathRaw;
245 inline const Raw & raw()
const
247 return static_cast<const Raw &
>(*this);
295typedef std::vector<DerivedPath> DerivedPaths;
306void drvRequireExperiment(
310JSON_IMPL(nix::SingleDerivedPath::Opaque)
311JSON_IMPL_WITH_XP_FEATURES(nix::SingleDerivedPath::Built)
313JSON_IMPL_WITH_XP_FEATURES(nix::DerivedPath::Built)
std::string_view OutputNameView
Definition outputs-spec.hh:24
std::string OutputName
Definition outputs-spec.hh:18
Definition derived-path.hh:185
std::string to_string_legacy(const StoreDirConfig &store) const
Definition derived-path.cc:39
std::string to_string(const StoreDirConfig &store) const
Definition derived-path.cc:34
static DerivedPathBuilt parse(const StoreDirConfig &store, ref< const SingleDerivedPath >, std::string_view, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition derived-path.cc:108
const StorePath & getBaseStorePath() const
Definition derived-path.cc:197
Definition derived-path.hh:26
Definition derived-path.hh:238
static DerivedPath parse(const StoreDirConfig &store, std::string_view, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition derived-path.cc:166
std::string to_string_legacy(const StoreDirConfig &store) const
Definition derived-path.cc:64
std::string to_string(const StoreDirConfig &store) const
Definition derived-path.cc:49
const StorePath & getBaseStorePath() const
Definition derived-path.cc:218
static DerivedPath fromSingle(const SingleDerivedPath &)
Definition derived-path.cc:177
static DerivedPath parseLegacy(const StoreDirConfig &store, std::string_view, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition derived-path.cc:171
Definition configuration.hh:558
Definition outputs-spec.hh:27
Definition derived-path.hh:46
const StorePath & getBaseStorePath() const
Definition derived-path.cc:192
bool isDynamicDrvOutput() const
Definition derived-path.cc:223
std::string to_string(const StoreDirConfig &store) const
Definition derived-path.cc:24
std::string to_string_legacy(const StoreDirConfig &store) const
Definition derived-path.cc:29
static SingleDerivedPathBuilt parse(const StoreDirConfig &store, ref< const SingleDerivedPath > drvPath, OutputNameView outputs, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition derived-path.cc:95
Definition derived-path.hh:105
static SingleDerivedPath parse(const StoreDirConfig &store, std::string_view, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition derived-path.cc:137
static SingleDerivedPath parseLegacy(const StoreDirConfig &store, std::string_view, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition derived-path.cc:143
std::string to_string_legacy(const StoreDirConfig &store) const
Definition derived-path.cc:54
std::string to_string(const StoreDirConfig &store) const
Definition derived-path.cc:44
bool isDynamicDrvOutput() const
Definition derived-path.cc:228
const StorePath & getBaseStorePath() const
Definition derived-path.cc:213
Definition store-dir-config.hh:29