blob: 0103885f565001babb8c9373310ff870dc0da570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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")))
|