Merge pull request #262 from toraritte/patch-1

Add nix-shell installation options in Readme
This commit is contained in:
DavHau 2021-04-28 19:49:39 +07:00 committed by GitHub
commit a7ddac2ce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -69,6 +69,19 @@ pip install git+git://github.com/DavHau/mach-nix@3.2.0
```shell
nix-env -if https://github.com/DavHau/mach-nix/tarball/3.2.0 -A mach-nix
```
or, if you prefer `nix-shell`:
+ if [Nix flakes is enabled](https://nixos.wiki/wiki/Flakes#:~:text=Installing%20flakes):
```shell
nix shell github:DavHau/mach-nix
```
+ otherwise:
```shell
nix-shell -p '(callPackage (fetchTarball https://github.com/DavHau/mach-nix/tarball/3.2.0) {}).mach-nix'
```
---
### Build a virtualenv-style python environment from a requirements.txt

View file

@ -1 +1 @@
master
patch-1