mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: Add gst-plugins/selection.
* gnu/packages/gstreamer.scm (gst-plugins/selection): New variable.
This commit is contained in:
parent
251e86823f
commit
4f196b0a9e
1 changed files with 22 additions and 0 deletions
|
@ -912,6 +912,28 @@ (define-public gst-editing-services
|
|||
non-linear editors.")
|
||||
(license license:gpl2+)))
|
||||
|
||||
(define-public gst-plugins/selection
|
||||
(lambda* (pkg #:key plugins configure-flags)
|
||||
"Build PKG with only PLUGINS enabled. Optionally, if CONFIGURE-FLAGS are
|
||||
given, also pass them to the build system instead of the ones used by PKG."
|
||||
(package/inherit pkg
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments pkg)
|
||||
((#:configure-flags flags `(,@(or configure-flags '())))
|
||||
`(append
|
||||
(list
|
||||
,@(map (lambda (plugin)
|
||||
(string-append "-D" plugin "=enabled"))
|
||||
plugins))
|
||||
(list ,@(or configure-flags flags))))
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(add-after 'unpack 'disable-auto-plugins
|
||||
(lambda _
|
||||
(substitute* "meson_options.txt"
|
||||
(("'auto'") "'disabled'"))
|
||||
#t)))))))))
|
||||
|
||||
(define-public python-gst
|
||||
(package
|
||||
(name "python-gst")
|
||||
|
|
Loading…
Reference in a new issue