8000 huggorm: select an attribute path and auto-call, as nix --file does · Issue #1041 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

huggorm: select an attribute path and auto-call, as nix --file does #1041

Closed

Description

@Lillecarl

Value.get and Value.has refuse a thunk, by design. So every consumer writes the same composition: force, then select, one component at a time, and autoCallFunction with __functor and no-formals handling.

Three copies exist now:

  • easykubenix ekn/attrpath.py and ekn/nix.py (Value.auto_call)
  • nanopynix-helpers eval_target.py
  • nanopynix _core/_objects.py (auto_call, attr_get)

vivarium-eval and pynix need it for the port off nanopynix (#866).

Plan: huggorm.attrpath in the hand-written layer, from ekn's copy:

  • parse_attr_path, select_attr_path, AttrPathNotFoundError
  • auto_call(state, value): defaults filled, __functor followed, anything else as it is

Then ekn uses it and drops its copy. Flake installable search (AttrPathSearch) moves later, with the nanopynix-helpers port.


Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: huggorm
    on Oct 23, 2026
  2. added 2 commits that reference this issue on Oct 23, 2026
    6050121
    7672df4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: huggorm

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0