update engine args docs
This commit is contained in:
parent
fac058a6d5
commit
96b0e39986
1 changed files with 8 additions and 1 deletions
|
@ -44,7 +44,14 @@ it accepts 3 arguments:
|
||||||
|
|
||||||
and returns a string containing a shell script that applies the templates to the entries
|
and returns a string containing a shell script that applies the templates to the entries
|
||||||
|
|
||||||
here's an example usage inside of another derivation:
|
the flake gives the engine `pkgs`, so when passing the engine function to a derivation, only provide it with the source directory:
|
||||||
|
```nix
|
||||||
|
import ./project/default.nix {
|
||||||
|
# ...
|
||||||
|
nte = nte.engines.${system}.default ./project;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
then you can use it as in the example derivation below:
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
nte,
|
nte,
|
||||||
|
|
Loading…
Reference in a new issue