Skip to content

Commit 6a7b24a

Browse files
committed
Document "nix-store --add"
1 parent cda1fd8 commit 6a7b24a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

doc/manual/nix-store.xml

+34
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,40 @@ $ nix-store -q --roots $(which svn)
729729

730730

731731

732+
<!--######################################################################-->
733+
734+
<refsection><title>Operation <option>--add</option></title>
735+
736+
<refsection><title>Synopsis</title>
737+
738+
<cmdsynopsis>
739+
<command>nix-store</command>
740+
<arg choice='plain'><option>--add</option></arg>
741+
<arg choice='plain' rep='repeat'><replaceable>paths</replaceable></arg>
742+
</cmdsynopsis>
743+
744+
</refsection>
745+
746+
<refsection><title>Description</title>
747+
748+
<para>The operation <option>--add</option> adds the specified paths to
749+
the Nix store. It prints the resulting paths in the Nix store on
750+
standard output.</para>
751+
752+
</refsection>
753+
754+
<refsection><title>Example</title>
755+
756+
<screen>
757+
$ nix-store --add ./foo.c
758+
/nix/store/m7lrha58ph6rcnv109yzx1nk1cj7k7zf-foo.c</screen>
759+
760+
</refsection>
761+
762+
</refsection>
763+
764+
765+
732766
<!--######################################################################-->
733767

734768
<refsection xml:id='refsec-nix-store-verify'><title>Operation <option>--verify</option></title>

0 commit comments

Comments
 (0)