nixdrv 0.2.1

nixdrv — derivation ATerm/JSON parse, project outs/inputs, CA store-path helpers
Documentation

nixdrv

Derivation ATerm/JSON parse, field projection, and content-addressed store-path helpers on id_effect.

Doctrine: pure derivation algebra (parse, project, fixed_output_path); I/O via DI 3.0 DrvSource + effect!/~Key; CLI = run_with + id_effect_cli exit codes.

Library

  • parse_drv_aterm — classic Nix .drv ATerm
  • Derivation::from_json — nix derivation show, bare JSON, eval-like projections
  • project — selective field export for assay consumers
  • fixed_output_path / text_path — CA store-path computation (no FS NAR walker)

Assay and nixq depend on this crate for derivation-shaped values.

Packaging (v1)

Devenv + moon only (devenv shell -- cargo test -p nixdrv). No NixOS module yet.

Non-goals

  • Building or realising derivations
  • Walking the filesystem to compute NAR hashes
  • Full Nix evaluator / store protocol