[Nix#9701] builtins.derivationStrict
is not documented #73
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
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…
Add table
Add a link
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.
builtins.derivation
replacement design #217[Nix#9701]to [Nix#9701]builtins.strictDerivation
builtins.derivationStrict
[Nix#9701]to [Nix#9701]builtins.derivationStrict
builtins.derivationStrict
is not documentedbuiltins.derivation
is not documented #436I'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.)