1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-17 07:52:43 +01:00

Make many members of DerivationGoal private

This commit is contained in:
John Ericson 2025-07-09 17:15:32 -04:00
parent c37df9c87c
commit ed55937002

View file

@ -43,21 +43,6 @@ struct DerivationGoal : public Goal
*/ */
OutputName wantedOutput; OutputName wantedOutput;
/**
* The derivation stored at drvPath.
*/
std::unique_ptr<Derivation> drv;
/**
* The remainder is state held during the build.
*/
std::map<std::string, InitialOutput> initialOutputs;
BuildMode buildMode;
std::unique_ptr<MaintainCount<uint64_t>> mcExpectedBuilds;
DerivationGoal( DerivationGoal(
const StorePath & drvPath, const StorePath & drvPath,
const Derivation & drv, const Derivation & drv,
@ -73,6 +58,28 @@ struct DerivationGoal : public Goal
std::string key() override; std::string key() override;
JobCategory jobCategory() const override
{
return JobCategory::Administration;
};
private:
/**
* The derivation stored at drvPath.
*/
std::unique_ptr<Derivation> drv;
/**
* The remainder is state held during the build.
*/
std::map<std::string, InitialOutput> initialOutputs;
BuildMode buildMode;
std::unique_ptr<MaintainCount<uint64_t>> mcExpectedBuilds;
/** /**
* The states. * The states.
*/ */
@ -95,11 +102,6 @@ struct DerivationGoal : public Goal
Co repairClosure(); Co repairClosure();
Done done(BuildResult::Status status, SingleDrvOutputs builtOutputs = {}, std::optional<Error> ex = {}); Done done(BuildResult::Status status, SingleDrvOutputs builtOutputs = {}, std::optional<Error> ex = {});
JobCategory jobCategory() const override
{
return JobCategory::Administration;
};
}; };
} // namespace nix } // namespace nix