about summary refs log tree commit diff
path: root/doc/manual/installation.xml
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-10T15·35+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-10T15·35+0100
commit57386c9baee78e50eb0c4a901ca9e1c147dc9777 (patch)
tree10e355904bd189ed2ac886c6ac1a91a7095d4c78 /doc/manual/installation.xml
parentc5839752b9d5099d4b5e7bcfc853581673e779f6 (diff)
Binary tarball: Automatically create /nix
The tarball can now be unpacked anywhere.  The installation script
uses "sudo" to create /nix if it doesn't exist.  It also fetches the
nixpkgs-unstable channel.
Diffstat (limited to 'doc/manual/installation.xml')
-rw-r--r--doc/manual/installation.xml29
1 files changed, 14 insertions, 15 deletions
diff --git a/doc/manual/installation.xml b/doc/manual/installation.xml
index a136d3b1129e..4c433a6bf769 100644
--- a/doc/manual/installation.xml
+++ b/doc/manual/installation.xml
@@ -69,27 +69,26 @@ $ dpkg -i nix_1.0-1_amd64.deb</screen>
 
 <para>For other platforms, including Mac OS X (Darwin), FreeBSD and
 other Linux distributions, you can download a binary tarball.  It
-contains Nix and all its dependencies.  You should unpack it in the
-root directory, then run <command>nix-finish-install</command>:
+contains Nix and all its dependencies.  You should unpack it somewhere
+(e.g. in <filename>/tmp</filename>), and then run the script named
+<command>install</command> inside the binary tarball:
 
 <screen>
-$ cd /
-$ tar xfj nix-1.1-x86_64-darwin.tar.bz2
-$ nix-finish-install
+alice$ cd /tmp
+alice$ tar xfj nix-1.1-x86_64-darwin.tar.bz2
+alice$ cd nix-1.1-x86_64-darwin
+alice$ ./install
 </screen>
 
-After this you can delete
-<filename>/usr/bin/nix-finish-install</filename>.</para>
-
-<para>If you plan to use Nix from a single non-root user account, it’s
-probably convenient to change the ownership of the entire Nix store
-and database to that user account.  In that case, install as follows:
+You should run this under your usual user account,
+<emphasis>not</emphasis> as root.  The script will invoke
+<command>sudo</command> to create <filename>/nix</filename> if it
+doesn’t already exist.  If you don’t have <command>sudo</command>, you
+should manually create <command>/nix</command> first as root:
 
 <screen>
-alice$ cd /
-alice$ sudo tar xfj nix-1.1-x86_64-darwin.tar.bz2
-alice$ sudo chown -R alice /nix
-alice$ nix-finish-install
+$ mkdir /nix
+$ chown alice /nix
 </screen>
 
 </para>