diff options
author | Nathan van Doorn <nvd1234@gmail.com> | 2018-07-16 10:00:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 10:00:42 +0100 |
commit | 41f38fbb4b89dc5df244a07410724beca2e14d96 (patch) | |
tree | a3bcc72976aa3ad9ab25237d8e9b6fbb1c70b6e0 /doc/manual | |
parent | 1b34b69b45106e5bfdbdc0201d3ff4dcd36632f0 (diff) |
nix-channel documentation: don't suggest deprecated function
Running `nix-instantiate --eval -E '(import <nixpkgs> {}).lib.nixpkgsVersion` emits a warning
```
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
```
Diffstat (limited to 'doc/manual')
-rw-r--r-- | doc/manual/command-ref/nix-channel.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual/command-ref/nix-channel.xml b/doc/manual/command-ref/nix-channel.xml index ff4021a76..f5159165a 100644 --- a/doc/manual/command-ref/nix-channel.xml +++ b/doc/manual/command-ref/nix-channel.xml @@ -112,13 +112,13 @@ $ nix-env -iA nixpkgs.hello</screen> <para>You can revert channel updates using <option>--rollback</option>:</para> <screen> -$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.nixpkgsVersion' +$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' "14.04.527.0e935f1" $ nix-channel --rollback switching from generation 483 to 482 -$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.nixpkgsVersion' +$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' "14.04.526.dbadfad" </screen> |