aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-10-15 09:13:07 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-10-15 09:13:07 +0300
commitbe0c94a3780c5a11ee50df31ebbfd950bcd00815 (patch)
treec94a419d76f70b5c4398a21a0ef8434d063499d0
parent00014f769233facebd84f13a00b10032a22cb440 (diff)
downloadguix-be0c94a3780c5a11ee50df31ebbfd950bcd00815.tar
guix-be0c94a3780c5a11ee50df31ebbfd950bcd00815.tar.gz
gnu: nginx-lua-module: Use install-file.
* gnu/packages/web.scm (nginx-lua-module)[arguments]: Use 'install-file' in custom 'install phase.
-rw-r--r--gnu/packages/web.scm7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 97bd8c4a71..647e481c0a 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -613,10 +613,9 @@ documentation.")
#t)))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
- (let ((modules-dir (string-append (assoc-ref outputs "out") "/etc/nginx/modules")))
- (mkdir-p modules-dir)
- (copy-file "objs/ngx_http_lua_module.so"
- (string-append modules-dir "/ngx_http_lua_module.so"))
+ (let ((modules-dir (string-append (assoc-ref outputs "out")
+ "/etc/nginx/modules")))
+ (install-file "objs/ngx_http_lua_module.so" modules-dir)
#t)))
(delete 'fix-root-dirs)
(delete 'install-man-page)))))