Make DerivationBuilder not require a Store - #16381
Merged
Ericson2314 merged 4 commits intoSep 10, 2026
Merged
Conversation
amaanq
force-pushed
the
derivation-builder-no-store
branch
from
August 28, 2026 01:34
aad1ef7 to
b2c6128
Compare
Ericson2314
reviewed
Aug 28, 2026
Ericson2314
reviewed
Aug 28, 2026
amaanq
force-pushed
the
derivation-builder-no-store
branch
from
August 28, 2026 14:42
b2c6128 to
1bb9f30
Compare
registerOutputs and cleanupBuildDerivationBuilder not require a Store
amaanq
force-pushed
the
derivation-builder-no-store
branch
3 times, most recently
from
August 28, 2026 15:20
9e026da to
1fc6ad0
Compare
Ericson2314
reviewed
Aug 28, 2026
Ericson2314
reviewed
Aug 28, 2026
amaanq
force-pushed
the
derivation-builder-no-store
branch
from
August 28, 2026 16:59
1fc6ad0 to
5348b90
Compare
xokdvium
reviewed
Aug 28, 2026
amaanq
force-pushed
the
derivation-builder-no-store
branch
2 times, most recently
from
August 28, 2026 18:08
fc16bb4 to
da3a013
Compare
Ericson2314
reviewed
Aug 28, 2026
Ericson2314
reviewed
Aug 28, 2026
amaanq
force-pushed
the
derivation-builder-no-store
branch
2 times, most recently
from
August 28, 2026 19:52
10ed25a to
fdbf219
Compare
xokdvium
reviewed
Sep 3, 2026
xokdvium
reviewed
Sep 3, 2026
amaanq
force-pushed
the
derivation-builder-no-store
branch
from
September 9, 2026 19:44
fdbf219 to
eec0cbe
Compare
Ericson2314
reviewed
Sep 9, 2026
amaanq
force-pushed
the
derivation-builder-no-store
branch
2 times, most recently
from
September 9, 2026 20:05
e325957 to
cd89a89
Compare
xokdvium
reviewed
Sep 9, 2026
Ericson2314
reviewed
Sep 9, 2026
Ericson2314
reviewed
Sep 9, 2026
amaanq
force-pushed
the
derivation-builder-no-store
branch
from
September 9, 2026 21:05
cd89a89 to
c292201
Compare
xokdvium
reviewed
Sep 9, 2026
xokdvium
approved these changes
Sep 9, 2026
xokdvium
left a comment
Contributor
There was a problem hiding this comment.
Seems nice and makes the requirements more obvious. I think this would help quite a bit to optimise the stuff down the line.
Ericson2314
force-pushed
the
derivation-builder-no-store
branch
2 times, most recently
from
September 9, 2026 23:20
cbc140d to
0d0feff
Compare
Co-authored-by: Amaan Qureshi <git@amaanq.com>
This should be more clear now too.
Ericson2314
force-pushed
the
derivation-builder-no-store
branch
from
September 9, 2026 23:32
0d0feff to
04e1ca5
Compare
Ericson2314
enabled auto-merge
September 9, 2026 23:33
The hope is to make `DerivationBuilder` easier to use with much less of libnixstore. Co-authored-by: Amaan Qureshi <git@amaanq.com>
Ericson2314
force-pushed
the
derivation-builder-no-store
branch
from
September 9, 2026 23:38
04e1ca5 to
4989a54
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
DerivationBuildercurrently does store work itself, registering outputs and cleaning up at the end of the build, which couples it to a fullStoreeven though building only needs the store layout. These commits move that responsibility to the caller and switch the builder toStoreDirConfigwhere possible, soDerivationBuilderno longer requires aStore.Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.