mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 22:46:16 +02:00
use InstallableValue::DerivationInfo
This commit is contained in:
parent
397b108e5e
commit
2ba1c12598
1 changed files with 3 additions and 3 deletions
|
@ -539,7 +539,7 @@ std::vector<InstallableValue::DerivationInfo> InstallableAttrPath::toDerivations
|
||||||
DrvInfos drvInfos;
|
DrvInfos drvInfos;
|
||||||
getDerivations(*state, *v, "", autoArgs, drvInfos, false);
|
getDerivations(*state, *v, "", autoArgs, drvInfos, false);
|
||||||
|
|
||||||
std::vector<DerivationInfo> res;
|
std::vector<InstallableValue::DerivationInfo> res;
|
||||||
for (auto & drvInfo : drvInfos) {
|
for (auto & drvInfo : drvInfos) {
|
||||||
auto drvPath = drvInfo.queryDrvPath();
|
auto drvPath = drvInfo.queryDrvPath();
|
||||||
if (!drvPath)
|
if (!drvPath)
|
||||||
|
@ -677,7 +677,7 @@ std::tuple<std::string, FlakeRef, InstallableValue::DerivationInfo> toDerivation
|
||||||
|
|
||||||
auto drvPath = attr->forceDerivation();
|
auto drvPath = attr->forceDerivation();
|
||||||
|
|
||||||
auto drvInfo = DerivationInfo {
|
auto drvInfo = InstallableValue::DerivationInfo {
|
||||||
std::move(drvPath),
|
std::move(drvPath),
|
||||||
attr->getAttr(flake.state->sOutputName)->getString()
|
attr->getAttr(flake.state->sOutputName)->getString()
|
||||||
};
|
};
|
||||||
|
@ -713,7 +713,7 @@ std::tuple<std::string, FlakeRef, InstallableValue::DerivationInfo> InstallableF
|
||||||
|
|
||||||
std::vector<InstallableValue::DerivationInfo> InstallableFlake::toDerivations()
|
std::vector<InstallableValue::DerivationInfo> InstallableFlake::toDerivations()
|
||||||
{
|
{
|
||||||
std::vector<DerivationInfo> res;
|
std::vector<InstallableValue::DerivationInfo> res;
|
||||||
res.push_back(std::get<2>(toDerivation()));
|
res.push_back(std::get<2>(toDerivation()));
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue