-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
featureFeature request or proposalFeature request or proposalnew-cliRelating to the "nix" commandRelating to the "nix" command
Milestone
Description
This is part of the CLI stabilisation effort.
Description
The commands should convert between store objects and nar/narinfo .
Since we're not settled on a format, require passing a format flag. This allows to add more formats later and set a default once we're confident this something that can be supported in the long term.
Warning
The current export format does not support CA and is not extensible.
Example
$ nix store export <store path> --format tar
# ... tar stream with nar and narinfo files
$ nix store import <path>...
/nix/store/<hash>-<name>
# more paths
TODO: Clarify CLI guideline in terms of reading from stdin
Context
- nix-store --export produces files that can't be processed by any
nix nar
commands #8727 - Stabilise
nix nar
and subcommands #8875
Add 👍 to issues you find important.
bjornfor, MathiasSven, ErrorNoInternet, x10an14, AleXoundOS and 2 moreedolstra
Metadata
Metadata
Assignees
Labels
featureFeature request or proposalFeature request or proposalnew-cliRelating to the "nix" commandRelating to the "nix" command
Type
Projects
Status
Defined work