Stabilise nix store add
#8915
Labels
idea approved
The given proposal has been discussed and approved by the Nix team. An implementation is welcome.
new-cli
Relating to the "nix" command
RFC
Related to an accepted RFC
Milestone
This implements NixOS/rfcs#136. This issue is agreed-upon by the https://github.com/orgs/NixOS/teams/nix-team
nix store add-file
andnix store add-path
into onenix store add
and expose the underlying store options--key value
or--value1|--value2
--recursive
with--mode nar|flat|drv|git
(denoting the output hash mode)nix hash
and subcommands #8876--mode nar
the default due to history and to match path-to-string coercion behavior in the languageflat
is for consuming a single filedrv
(later) for implementing RFC 92; hashing mode to support adding.drv
filesgit
(later) for implementing RFC 133outputHashMode
,outputHashAlgo
, etc. on the command lineaddToStore
: https://github.com/NixOS/nix/blob/master/src/libstore/store-api.hh#L517The text was updated successfully, but these errors were encountered: