Skip to content

libstore: inline willBuildLocally and canBuildLocally into call sites#15232

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:inline-buildlocally
Feb 13, 2026
Merged

libstore: inline willBuildLocally and canBuildLocally into call sites#15232
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:inline-buildlocally

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 13, 2026

Motivation

This commit inlines DerivationOptions::willBuildLocally and DerivationOptions::canBuildLocally into their sole call site in DerivationBuildingGoal::tryToBuild. The canBuildLocally logic is now a lambda capturing the surrounding context, and willBuildLocally is replaced by drvOptions.preferLocalBuild && canBuildLocally. The corresponding method declarations, implementations, and test assertions are removed.

Context

Progress on #5638


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

…ites

This commit inlines `DerivationOptions::willBuildLocally` and
`DerivationOptions::canBuildLocally` into their sole call site in
`DerivationBuildingGoal::tryToBuild`. The `canBuildLocally` logic is now
a lambda capturing the surrounding context, and `willBuildLocally` is
replaced by `drvOptions.preferLocalBuild && canBuildLocally`.

Progress on NixOS#5638

Co-authored-by: John Ericson <John.Ericson@Obsidian.Systems>
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 13, 2026
Merged via the queue into NixOS:master with commit a4b1814 Feb 13, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the inline-buildlocally branch February 13, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants