README: The nix-env --install --attr needs the channel prefix

This commit is contained in:
Tyson Whitehead
2018-02-07 10:35:32 -05:00
parent be9d77db0f
commit 33be90dd1e

View File

@@ -38,7 +38,7 @@ To install (or update) a package, specify the packages attribute to
`nix-env` using the `--attr` option
```bash
nix-env --install --attr attribute
nix-env --install --attr nixpkgs.attribute
```
where `attribute` is replaced with the attribute that designates the
@@ -75,6 +75,7 @@ nix-env --rollback
A development environment consisting of a given set of packages can be
entered using the `nix-shell` command with the `--packages` option
(unlike `nix-env`, this automatically uses the `nixpkgs` channel)
```bash
nix-shell --packages attribute ...