Manual: improve source checkout section
This commit is contained in:
parent
35ac2ad9ca
commit
49f2d06a20
doc/manual
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue