Manual: improve source checkout section

This commit is contained in:
Evgeny Egorochkin 2013-08-06 19:22:20 +03:00
parent 35ac2ad9ca
commit 49f2d06a20
1 changed files with 11 additions and 1 deletions
doc/manual

View File

@ -18,12 +18,22 @@ uses the NixOS and Nixpkgs sources provided by the
<literal>nixos-unstable</literal> channel (kept in <literal>nixos-unstable</literal> channel (kept in
<filename>/nix/var/nix/profiles/per-user/root/channels/nixos</filename>). <filename>/nix/var/nix/profiles/per-user/root/channels/nixos</filename>).
To modify NixOS, however, you should check out the latest sources from To modify NixOS, however, you should check out the latest sources from
Subversion. This is done using the following command: Git. This is done using the following command:
<screen> <screen>
$ nixos-checkout <replaceable>/my/sources</replaceable> $ nixos-checkout <replaceable>/my/sources</replaceable>
</screen> </screen>
or
<screen>
$ mkdir -p <replaceable>/my/sources</replaceable>
$ cd <replaceable>/my/sources</replaceable>
$ nix-env -i git
$ git clone git://github.com/NixOS/nixos.git
$ git clone git://github.com/NixOS/nixpkgs.git
</screen>
This will check out the latest NixOS sources to This will check out the latest NixOS sources to
<filename><replaceable>/my/sources</replaceable>/nixos</filename> and <filename><replaceable>/my/sources</replaceable>/nixos</filename> and
the Nixpkgs sources to the Nixpkgs sources to