Skip to content

Commit fdad590

Browse files
nix-env -> nix-shell
please don't recommend `nix-env` any more
1 parent b5fcd08 commit fdad590

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,36 @@ camlistore.out 7,938,952 x /nix/store/xn5ivjdyslx
2929
$ nix run github:nix-community/nix-index#nix-locate -- bin/hello
3030
```
3131

32+
### From Nixpkgs
33+
34+
From your locally configured version Nixpkgs:
35+
36+
```
37+
$ nix-shell -p nix-index
38+
[nix-shell]$ nix-index
39+
[nix-shell]$ nix-locate bin/hello
40+
```
41+
42+
From the latest rolling release of Nixpkgs:
43+
44+
```
45+
$ nix-shell -p nix-index -I nixpkgs=channel:nixpkgs-unstable
46+
```
47+
3248
### Latest Git version
3349

34-
To install the latest development version of nix-index, simply clone the repo and run `nix-env -if.`:
50+
To run the latest development version of nix-index:
3551

3652
```
37-
$ git clone https://github.com/nix-community/nix-index
38-
$ cd nix-index
39-
$ nix-env -if.
53+
$ nix-shell https://github.com/nix-community/nix-index/tarball/master
4054
```
4155

42-
### Stable
56+
### Stable releases
4357

44-
For the stable version, you can either [checkout](https://git-scm.com/docs/git-checkout) the latest [tag](https://git-scm.com/docs/git-tag) (see the list [here](https://github.com/nix-community/nix-index/tags)) or use Nixpkgs' repositories' and install it with:
58+
To get a specific stable release, use one of the [release tags](https://github.com/nix-community/nix-index/tags):
4559

4660
```
47-
$ nix-env -iA nixos.nix-index
61+
$ nix-shell https://github.com/nix-community/nix-index/tarball/v0.1.7
4862
```
4963

5064
## Usage

0 commit comments

Comments
 (0)