Merge pull request #478 from edjroot/patch-1

README: How to generate a nix expression from a list of requirements
This commit is contained in:
DavHau 2022-06-27 22:01:38 +02:00 committed by GitHub
commit 2883380003
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,6 +94,13 @@ mach-nix gen -r requirements.txt
...to print out the nix expression which defines a python derivation (optionally use `-o` to define an `output file`)
---
### Build a derivation or enter a shell from a list of requirements
+ if [Nix flakes is enabled](https://nixos.wiki/wiki/Flakes#:~:text=Installing%20flakes):
```shell
nix (build|shell) mach-nix#gen.(python|docker).package1.package2...
```
---
## Usage in Nix Expression