-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New derivation-making builtin #9774
Copy link
Copy link
Open
Labels
derivation designIssues to consider for new versions of the derivation format (major or incremental)Issues to consider for new versions of the derivation format (major or incremental)featureFeature request or proposalFeature request or proposallanguageThe Nix expression language; parser, interpreter, primops, evaluation, etcThe Nix expression language; parser, interpreter, primops, evaluation, etcstoreIssues and pull requests concerning the Nix storeIssues and pull requests concerning the Nix store
Metadata
Metadata
Assignees
Labels
derivation designIssues to consider for new versions of the derivation format (major or incremental)Issues to consider for new versions of the derivation format (major or incremental)featureFeature request or proposalFeature request or proposallanguageThe Nix expression language; parser, interpreter, primops, evaluation, etcThe Nix expression language; parser, interpreter, primops, evaluation, etcstoreIssues and pull requests concerning the Nix storeIssues and pull requests concerning the Nix store
Fields
Give feedbackNo fields configured for issues without a type.
builtins.derivation(andbuiltins.derivationStrict) have a number of issues:drvPathhas a funky "DrvDeep" string context that needs to be stripped away with the scary-soundingbuiltins.unsafeDiscardOutputDependency.Mixing together environment variable and magic flags is icky (this also applies to the on-disk
.drvformat)Returning the arguments to the user provided encourages memory leaks (
derivationStrictalready improves on this overderivation)Returning the boiled-down inputs (e.g.
inputSrcs,inputDrvs) is sometimes useful, and we could just return it here.The outputs are mixed in with the other attributes (separation of dicts and records; see JSON guideline)
Remembers
metaattributes, including such attributes asmeta.timeout, tracked byEvalStateand/orWorkermeta.credentials(as in Pluggable authentication #9857 (comment))meta.position(as discussed at Zurich ZHF 2024.05)Possibly: arbitrary other
metaattributesTODO other things
Priorities
Add 👍 to issues you find important.