[Nix#9866] Derivation JSON env
does not adhere to the JSON guidelines #63
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#63
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#9866
Describe the bug
NOTE: Changing how derivations works is rather invasive, so the question for the new-cli effort is whether we want to design this now to be forward compatible with these changes.
Essentially this is inherited from
builtins.derivation
and the ATerm-based format, but it is exposed on the command line.This is some deep legacy, but nothing that can't be solved. Solving it is worthwhile because it improves the user experience, complying with the guidelines, and answers other questions such as #9846 without having to come up with something completely arbitrary and subject to change.
Steps To Reproduce
nix derivation show nixpkgs#hello
Observe that each derivation has fields
args
builder
env
inputDrvs
inputSrcs
name
outputs
system
These look well defined, but
env
is not. It may contain various attributes, such aspreferLocalBuild
, etc, which affect scheduling and have no business being in the process environment.(They should not be part of the output fingerprint either; #9259)
Observe that the top level is a dictionary. (So the command can't summarize any results without violating the guidelines or switching formats. That may be acceptable.)
Expected behavior
env
for scheduling attributes and such, because those are Nix-specific fields, not dict entries.nix-env --version
outputAdditional context
Priorities
Add 👍 to issues you find important.