From 96b0e399866b92cd322d23c0ac9cbe5e96a8086e Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sat, 25 May 2024 17:48:11 +0200 Subject: [PATCH] update engine args docs --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 67efdd6..4bb9128 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,14 @@ it accepts 3 arguments: 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 { nte,