README: How to generate a nix expression from a list of requirements

This commit is contained in:
edjroot 2022-06-27 11:47:57 -03:00 committed by GitHub
parent 552d4caa73
commit d575bdfae6
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`)
---
### Generate a nix expression 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