Merge pull request #38351 from grahamc/user-channels
Add user channels to the default nix path
This commit is contained in:
@@ -20,10 +20,21 @@ has the following highlights: </para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
TODO
|
||||
User channels are now in the default <literal>NIX_PATH</literal>,
|
||||
allowing users to use their personal <command>nix-channel</command>
|
||||
defined channels in <command>nix-build</command> and
|
||||
<command>nix-shell</command> commands, as well as in imports like
|
||||
<code>import <mychannel></code>.
|
||||
</para>
|
||||
<para>For example</para>
|
||||
<programlisting>
|
||||
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgsunstable
|
||||
$ nix-channel --update
|
||||
$ nix-build '<nixpkgsunstable>' -A gitFull
|
||||
$ nix run -f '<nixpkgsunstable>' gitFull
|
||||
$ nix-instantiate -E '(import <nixpkgsunstable> {}).gitFull'
|
||||
</programlisting>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user