README: clarify how to install packages via nix-env

This commit is contained in:
Domen Kožar 2020-11-20 14:22:16 +01:00 committed by GitHub
parent 68043fd3c3
commit ef4324316b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ jobs:
[Currently GitHub Actions are not running on Azure instance types that support nested virtualization](https://github.com/actions/virtual-environments/issues/183#issuecomment-610723516). [Currently GitHub Actions are not running on Azure instance types that support nested virtualization](https://github.com/actions/virtual-environments/issues/183#issuecomment-610723516).
### How do I print nixpkgs version with the channel I have configured? ### How do I print nixpkgs version I have configured?
```nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'``` ```nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'```
@ -96,6 +96,12 @@ With the following inputs:
Note that there's no hardware acceleration on GitHub Actions. Note that there's no hardware acceleration on GitHub Actions.
### How can I install packages via nix-env from the specified `nix_path`?
```
nix-env -i mypackage -f '<nixpkgs>'
```
## Hacking ## Hacking
Install the dependencies Install the dependencies