README: How to generate a nix expression from a list of requirements
This commit is contained in:
parent
552d4caa73
commit
d575bdfae6
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue