gnu: nginx-rtmp-module: Use gexps in phases.

* gnu/packages/web.scm (nginx-rtmp-module)[#:phases]: Use gexps and
remove trailing #t.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Jack Hill 2022-05-26 22:04:04 -04:00 committed by Christopher Baines
parent 9bb71eaac0
commit 0e953f3332
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -800,24 +800,22 @@ (define-public nginx-rtmp-module
((#:phases phases) ((#:phases phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-after 'unpack 'unpack-nginx-sources (add-after 'unpack 'unpack-nginx-sources
(lambda* (#:key inputs native-inputs #:allow-other-keys) (lambda _
(begin (begin
;; The nginx source code is part of the modules source. ;; The nginx source code is part of the modules source.
(format #t "decompressing nginx source code~%") (format #t "decompressing nginx source code~%")
(invoke "tar" "xvf" (assoc-ref inputs "nginx-sources") (invoke "tar" "xvf" #$(this-package-input "nginx-sources")
;; This package's LICENSE file would be ;; This package's LICENSE file would be
;; overwritten with the one from nginx when ;; overwritten with the one from nginx when
;; unpacking the nginx source, so rename the nginx ;; unpacking the nginx source, so rename the nginx
;; one when unpacking. ;; one when unpacking.
"--transform=s,/LICENSE$,/LICENSE.nginx," "--transform=s,/LICENSE$,/LICENSE.nginx,"
"--strip-components=1") "--strip-components=1"))))
#t)))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(let ((modules-dir (string-append (assoc-ref outputs "out") (let ((modules-dir (string-append #$output
"/etc/nginx/modules"))) "/etc/nginx/modules")))
(install-file "objs/ngx_rtmp_module.so" modules-dir) (install-file "objs/ngx_rtmp_module.so" modules-dir))))
#t)))
(delete 'fix-root-dirs) (delete 'fix-root-dirs)
(delete 'install-man-page))))) (delete 'install-man-page)))))
(home-page "https://github.com/arut/nginx-rtmp-module") (home-page "https://github.com/arut/nginx-rtmp-module")