Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-env -> nix-shell #242

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,36 @@ camlistore.out 7,938,952 x /nix/store/xn5ivjdyslx
$ nix run github:nix-community/nix-index#nix-locate -- bin/hello
```

### From Nixpkgs

From your locally configured version Nixpkgs:
fricklerhandwerk marked this conversation as resolved.
Show resolved Hide resolved

```
$ nix-shell -p nix-index
[nix-shell]$ nix-index
[nix-shell]$ nix-locate bin/hello
```

From the latest rolling release of Nixpkgs:

```
$ nix-shell -p nix-index -I nixpkgs=channel:nixpkgs-unstable
```

### Latest Git version

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

```
$ git clone https://github.com/nix-community/nix-index
$ cd nix-index
$ nix-env -if.
$ nix-shell https://github.com/nix-community/nix-index/tarball/master
fricklerhandwerk marked this conversation as resolved.
Show resolved Hide resolved
```

### Stable
### Stable releases

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:
To get a specific stable release, use one of the [release tags](https://github.com/nix-community/nix-index/tags):

```
$ nix-env -iA nixos.nix-index
$ nix-shell https://github.com/nix-community/nix-index/tarball/v0.1.7
fricklerhandwerk marked this conversation as resolved.
Show resolved Hide resolved
```

## Usage
Expand Down
Loading