[Nix#9701] builtins.derivationStrict
is not documented #73
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#73
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upstream-Issue: NixOS/nix#9701
Problem
strictDerivation
is not mentioned in the manual.Should it be documented? Yes, because it is arguably a better function than
derivation
:derivation
attrNames
are more predictable than those ofderivation
and (by extension) NixpkgsmkDerivation
,Proposal
Document the derivation arguments on a separate page about derivations. This page is store-level documentation.
Document both builtins as usual, referring to the derivation page, and a paragraph about the return value and how it relates to the
outputs
argument.Checklist
Priorities
Add 👍 to issues you find important.
[Nix#9701] `builtins.strictDerivation`to [Nix#9701] `builtins.derivationStrict`[Nix#9701] `builtins.derivationStrict`to [Nix#9701] `builtins.derivationStrict` is not documentedI'm not entirely sure I agree with it being "more efficient", since
builtins.derivation
intentionally wrapsbuiltins.derivationStrict
lazy, usingbuiltins.derivationStrict
directly forces more to be done during initial eval. Though most uses would probably immediately wrap it again in a more comfortable interface likestdenv.mkDerivation
anyway, so moving that step to downstream consumers is sensible.However it should definitely be documented as it's what links eval to the actual creation of derivations in the store, i.e. it's one of our few impure operations (alongside
builtins.toFile
and the variousbuiltins.fetch*
operations.)