mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 20:16:03 +01:00
Merge pull request #13846 from obsidiansystems/derivation-builder-params-aggregate-initialize
No more `DerivationBuilderParams:` constructor!
This commit is contained in:
commit
79211b6110
2 changed files with 10 additions and 36 deletions
|
|
@ -758,16 +758,16 @@ Goal::Co DerivationBuildingGoal::tryToBuild()
|
||||||
*localStoreP,
|
*localStoreP,
|
||||||
std::make_unique<DerivationBuildingGoalCallbacks>(*this, builder),
|
std::make_unique<DerivationBuildingGoalCallbacks>(*this, builder),
|
||||||
DerivationBuilderParams{
|
DerivationBuilderParams{
|
||||||
drvPath,
|
.drvPath = drvPath,
|
||||||
buildMode,
|
.buildResult = buildResult,
|
||||||
buildResult,
|
.drv = *drv,
|
||||||
*drv,
|
.drvOptions = *drvOptions,
|
||||||
*drvOptions,
|
.inputPaths = inputPaths,
|
||||||
inputPaths,
|
.initialOutputs = initialOutputs,
|
||||||
initialOutputs,
|
.buildMode = buildMode,
|
||||||
std::move(defaultPathsInChroot),
|
.defaultPathsInChroot = std::move(defaultPathsInChroot),
|
||||||
std::move(finalEnv),
|
.finalEnv = std::move(finalEnv),
|
||||||
std::move(extraFiles),
|
.extraFiles = std::move(extraFiles),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,32 +93,6 @@ struct DerivationBuilderParams
|
||||||
* `EnvEntry::nameOfPassAsFile` above.
|
* `EnvEntry::nameOfPassAsFile` above.
|
||||||
*/
|
*/
|
||||||
StringMap extraFiles;
|
StringMap extraFiles;
|
||||||
|
|
||||||
DerivationBuilderParams(
|
|
||||||
const StorePath & drvPath,
|
|
||||||
const BuildMode & buildMode,
|
|
||||||
BuildResult & buildResult,
|
|
||||||
const Derivation & drv,
|
|
||||||
const DerivationOptions & drvOptions,
|
|
||||||
const StorePathSet & inputPaths,
|
|
||||||
std::map<std::string, InitialOutput> & initialOutputs,
|
|
||||||
PathsInChroot defaultPathsInChroot,
|
|
||||||
std::map<std::string, EnvEntry, std::less<>> finalEnv,
|
|
||||||
StringMap extraFiles)
|
|
||||||
: drvPath{drvPath}
|
|
||||||
, buildResult{buildResult}
|
|
||||||
, drv{drv}
|
|
||||||
, drvOptions{drvOptions}
|
|
||||||
, inputPaths{inputPaths}
|
|
||||||
, initialOutputs{initialOutputs}
|
|
||||||
, buildMode{buildMode}
|
|
||||||
, defaultPathsInChroot{std::move(defaultPathsInChroot)}
|
|
||||||
, finalEnv{std::move(finalEnv)}
|
|
||||||
, extraFiles{std::move(extraFiles)}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
DerivationBuilderParams(DerivationBuilderParams &&) = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue