I would like to call nix-store.
The full command goes like nix-store -qR —include-outputs <drv>
. I am aware that in the new-cli there is a command equivalent to this and it is nix path-info —recursive <drv>
, but there is no —include-outputs
equivalent. Neither can I iterate over all the drv’s generated using nix path-info —recursive <drv>
to get the outPath, see: https://github.com/NixOS/nix/issues/5895
We could also add a pub struct NixStoreCmd
to nix-rs
Just now discovering juspay/nix-rs
. Does this have all/most of the "bindings" to nix/nix-v3?
What's nix-v3?
nix-build
are the "old" (non-flake) commands while nix build
is part of the v3 of Nix's CLI
nix-rs
uses new-style Nix commands (what you call v3 Nix's CLI), yes ... but it only has those things we use in other projects (nix-browser, nix-health) right now. We should add the rest as needed, or as people contribute.
ack, I don't really have much use for a "Rust wrapper" but it sounds like something I might toy with sometime soon :D
https://github.com/juspay/nix-rs/pull/6
Last updated: Nov 15 2024 at 12:33 UTC