diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2024-02-01 18:41:50 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2024-02-01 18:41:50 +0200 |
| commit | a641a26a607243969b27cfac0139a7e1c65b2f0e (patch) | |
| tree | 80d5ae1d4e0982f74f5075a702662380081836ff /examples | |
| parent | c890e76f84b00775ffcedb2842a04a781715fb7d (diff) | |
Fix bugs, add utilities
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/build-manifest-eval | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/build-manifest-eval b/examples/build-manifest-eval new file mode 100644 index 0000000..0103885 --- /dev/null +++ b/examples/build-manifest-eval @@ -0,0 +1,16 @@ +(let* (;; Glob all files under src/ + (src-files (glob "src/*")) + ;; Map files to locations in nginx dir + (src-file-targets (map (@ string-append "/usr/share/nginx/html/") src-files)) + ;; Construct the list of file mappings + (file-mappings `(("nginx.conf" . "/etc/nginx/nginx.conf") + . ,(zip src-files src-file-targets)))) + + `((packages + . #("nginx")) + (files + . ,file-mappings) + (build-commands + . #("sysrc nginx_enable=YES")) + (start-command + . "nginx -c nginx.conf"))) |
