8000 Port pynix from nanopynix to huggorm · Issue #1051 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

Port pynix from nanopynix to huggorm #1051

Open

Description

@Lillecarl

pynix runs on nanopynix's session, value and store objects: 48 files of 13.5k lines. huggorm's helpers (attrpath, attrcompletion, fod) take huggorm objects, so nanopynix-helpers can go only after pynix ports (User chose the port, 2026-10-23).

The surface map is the first comment. It finds no huggorm gap. Each missing piece is pynix's own, as huggorm's docs/parity.md says: the overlay-namespace session, the typed settings, store_exec_prefix, the REPL line editors, the process title, and the --update-fod retry loop.

Order:

  1. The eval path: session helpers in _util, target.py, then each command with its tests.
  2. nanopynix-helpers goes when the last caller moves (Move nanopynix-helpers into huggorm #1044).
  3. The store commands, settings, the REPL, and build --namespaced.

nanopynix._typechecking stays. It belongs to #866.

Refs #1044
Refs #866


Assisted-By: Claude Opus 5.5

Activity

  1. Lillecarl commented on Oct 23, 2026

    @Lillecarl
    ContributorAuthor

    Surface map: pynix on nanopynix -> huggorm (2026-10-23)

    Scope: pynix/src (48 files of 13.5k lines import nanopynix). nanopynix._typechecking
    (BEARTYPING, no_runtime_type_check; 39 sites) stays: #866, on hold.

    nanopynix huggorm status
    inproc.Session(settings, experimental_features, verbosity) huggorm.AsyncSession(store_uri); eval(store, settings=dict) done; settings become dict[str,str]
    rpc.Session(namespace=OverlayNamespace) (build --namespaced) AsyncRemoteSession over a server pynix starts in the namespace pynix-owned (parity: overlay namespace refused)
    session.log_stream() -> LogEvent (action, level, args, is_nix_log) AsyncSession.logs()/forward()/capture() -> LogRecord check LogRecord fields (activity start/result, level) for --nom
    session.store(uri) / nix.eval(store) session.store(uri) / session.eval(store) done
    AsyncEvalSession.file / string AsyncEvalState.eval_file / eval_expr(expr, base) done
    lock_flake(ref) -> locked.eval() lock_flake(FlakeRef) + call_flake(locked); parse_flake_ref done
    eval_flake lock_flake + call_flake done
    reset_file_cache forget_file / cached_files done (per file)
    configure / settings / set_settings set_setting; list_settings (decl eval.py) done
    verbosity get/set session.py thread + default levels done
    AsyncValue get_type / NixType type_name() -> str done
    to_python to_json() + json.loads done
    attr / has_attr / attr_names get / has / names done
    list_get / list_length at / length done
    call / apply call (callFunction), apply_auto done
    auto_call huggorm.attrpath.auto_call done
    realise_string / realise_argv / as_string realise_string / realise_argv / string_value done
    get_doc / attr_doc / edit_location doc / attr_doc / edit_location done
    value.build() drv_path + store.build_paths_with_results done
    release aclose done
    AsyncReplSession line/load_file/add_attrs/scope_names/repl_select AsyncRepl process_line/load_file/add_attrs/names/select done
    repl line_editors - pynix-owned (prompt_toolkit glue)
    AsyncStore (36 methods) AsyncStore, same libstore names done
    store.store_dirs() store_dir() + real_store_dir() done
    query_derivation_outputs query_derivation_output_map done
    registry_entries/add/remove/pin, user_registry_path free functions registry_* check user_registry_path
    write_dev_shell_derivation huggorm.devshell done
    get_env_sh_path importlib.resources huggorm_bindings/get-env.sh done
    current_system, is_pseudo_url, list_settings decl eval.py free functions done
    strip_ansi filter_ansi_escapes done
    init_libstore decl store.py done
    NixSettings, NixSettingsEnv, PrefixedEnvSettingsSource, NixGlobalSettings, NixFetchSettings - pynix-owned (parity: typed settings superseded)
    store_exec_prefix - pynix-owned (parity: refused)
    set_manager_title - pynix-owned
    exceptions NixError, ThrownError, NixTypeError huggorm_bindings.errors done; check msg_without_ansi
    EvaluatorAbandonedError - pynix-owned or drop (rpc worker death)
    models JsonValue, StorePath, PathInfo; GcAction huggorm JsonValue, StorePath, PathInfo, GCAction done
    nanopynix_helpers eval_target/attr_completion/fod huggorm.attrpath / attrcompletion / fod done
    nanopynix_helpers.build build_with_fod_update moves into pynix pynix-owned

    Staging: eval path first (_util session helpers beside the nanopynix ones, target.py,
    then commands one at a time with their tests), nanopynix-helpers goes when the last
    caller moves. Store-only commands, --namespaced, settings and repl later.
    Tests: pynix/tests run on nanopynix_testing fixtures; each command's tests move with it.


    Assisted-By: Claude Opus 5.5

  2. added
    source: nanopynix
    on Oct 23, 2026
  3. 13 remaining items

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: nanopynix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0