Merge pull request #2291 from Taneb/master

nix-channel documentation: don't suggest deprecated function
This commit is contained in:
Eelco Dolstra 2019-10-17 12:53:42 +02:00 committed by GitHub
commit ab4dd1d783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,13 +111,13 @@ $ nix-env -iA nixpkgs.hello</screen>
<para>You can revert channel updates using <option>--rollback</option>:</para>
<screen>
$ nix-instantiate --eval -E '(import &lt;nixpkgs> {}).lib.nixpkgsVersion'
$ nix-instantiate --eval -E '(import &lt;nixpkgs> {}).lib.version'
"14.04.527.0e935f1"
$ nix-channel --rollback
switching from generation 483 to 482
$ nix-instantiate --eval -E '(import &lt;nixpkgs> {}).lib.nixpkgsVersion'
$ nix-instantiate --eval -E '(import &lt;nixpkgs> {}).lib.version'
"14.04.526.dbadfad"
</screen>