summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-10 18:09:45 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-10 18:09:45 -0400
commit6a7b24a3f25548fe2b083555cd2117dd66557ab0 (patch)
tree5b992e8d46060fb92399753aea47de90136999ad /doc
parentcda1fd8ec86553f2a76366ec56c3fa21788fc189 (diff)
downloadguix-6a7b24a3f25548fe2b083555cd2117dd66557ab0.tar.gz
Document "nix-store --add"
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/nix-store.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/manual/nix-store.xml b/doc/manual/nix-store.xml
index 13b6d1cfa1..cb77b3147c 100644
--- a/doc/manual/nix-store.xml
+++ b/doc/manual/nix-store.xml
@@ -731,6 +731,40 @@ $ nix-store -q --roots $(which svn)
 
 <!--######################################################################-->
 
+<refsection><title>Operation <option>--add</option></title>
+
+<refsection><title>Synopsis</title>
+
+<cmdsynopsis>
+  <command>nix-store</command>
+  <arg choice='plain'><option>--add</option></arg>
+  <arg choice='plain' rep='repeat'><replaceable>paths</replaceable></arg>
+</cmdsynopsis>
+
+</refsection>
+
+<refsection><title>Description</title>
+
+<para>The operation <option>--add</option> adds the specified paths to
+the Nix store.  It prints the resulting paths in the Nix store on
+standard output.</para>
+
+</refsection>
+
+<refsection><title>Example</title>
+
+<screen>
+$ nix-store --add ./foo.c
+/nix/store/m7lrha58ph6rcnv109yzx1nk1cj7k7zf-foo.c</screen>
+
+</refsection>
+
+</refsection>
+
+
+
+<!--######################################################################-->
+
 <refsection xml:id='refsec-nix-store-verify'><title>Operation <option>--verify</option></title>
 
 <refsection>