Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
downstream-placeholder.hh
Go to the documentation of this file.
1#pragma once
3
4#include "hash.hh"
5#include "path.hh"
6#include "derived-path.hh"
7
8namespace nix {
9
30class DownstreamPlaceholder
31{
36 Hash hash;
37
41 DownstreamPlaceholder(Hash hash) : hash(hash) { }
42
43public:
48 std::string render() const;
49
59 static DownstreamPlaceholder unknownCaOutput(
60 const StorePath & drvPath,
61 OutputNameView outputName,
62 const ExperimentalFeatureSettings & xpSettings = experimentalFeatureSettings);
63
73 static DownstreamPlaceholder unknownDerivation(
74 const DownstreamPlaceholder & drvPlaceholder,
75 OutputNameView outputName,
76 const ExperimentalFeatureSettings & xpSettings = experimentalFeatureSettings);
77
86 static DownstreamPlaceholder fromSingleDerivedPathBuilt(
87 const SingleDerivedPath::Built & built,
88 const ExperimentalFeatureSettings & xpSettings = experimentalFeatureSettings);
89};
90
91}
static DownstreamPlaceholder unknownCaOutput(const StorePath &drvPath, OutputNameView outputName, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition downstream-placeholder.cc:12
std::string render() const
Definition downstream-placeholder.cc:6
static DownstreamPlaceholder unknownDerivation(const DownstreamPlaceholder &drvPlaceholder, OutputNameView outputName, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition downstream-placeholder.cc:26
static DownstreamPlaceholder fromSingleDerivedPathBuilt(const SingleDerivedPath::Built &built, const ExperimentalFeatureSettings &xpSettings=experimentalFeatureSettings)
Definition downstream-placeholder.cc:41
Definition path.hh:27
std::string_view OutputNameView
Definition outputs-spec.hh:24
Definition config.hh:382
Definition hash.hh:45