gnu: nginx-rtmp-module: Use #:configure-flags from nginx.

* gnu/packages/web.scm (nginx-rtmp-module)[arguments]: Simplify copying
of arguments from nginx and augment #:configure-flags from nginx
rather than overwriting.

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

View file

@ -793,11 +793,10 @@ (define-public nginx-rtmp-module
,@(package-inputs nginx)))
(arguments
(substitute-keyword-arguments
`(#:make-flags '("modules")
#:modules ((guix build utils)
(guix build gnu-build-system))
,@(package-arguments nginx)
#:configure-flags '("--add-dynamic-module=."))
`(#:make-flags '("modules") ;Only build this module not all of nginx.
,@(package-arguments nginx))
((#:configure-flags flags)
#~(cons "--add-dynamic-module=." #$flags))
((#:phases phases)
#~(modify-phases #$phases
(add-after 'unpack 'unpack-nginx-sources