-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New derivation-making builtin #9774
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-01-15-nix-team-meeting-minutes-115/38297/1 |
Outdated - possible
|
We should also consider whether we even want to return such attributes as |
@roberth I was thinking the user would just drop them if they don't want them. Outdated - possible
|
Nix prints the position of the
Ideally, Nix would accept a In summary:
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-03-11-nix-team-meeting-132/42960/1 |
Added two examples of |
builtins.derivation
(andbuiltins.derivationStrict
) have a number of issues:drvPath
has 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
.drv
format)Returning the arguments to the user provided encourages memory leaks (
derivationStrict
already 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
meta
attributes, including such attributes asmeta.timeout
, tracked byEvalState
and/orWorker
meta.credentials
(as in Pluggable authentication #9857 (comment))meta.position
(as discussed at Zurich ZHF 2024.05)Possibly: arbitrary other
meta
attributesTODO other things
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: