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.drvATermDerivation::from_json—nix derivation show, bare JSON, eval-like projectionsproject— selective field export for assay consumersfixed_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