all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: 44806@debbugs.gnu.org
Subject: [bug#44806] [PATCH v2 3/5] gnu: Add gst-plugins/selection.
Date: Tue, 15 Dec 2020 10:03:04 +0100	[thread overview]
Message-ID: <20201215090306.28109-3-leo.prikler@student.tugraz.at> (raw)
In-Reply-To: <20201215090306.28109-1-leo.prikler@student.tugraz.at>

* gnu/packages/gstreamer.scm (gst-plugins/selection): New variable.
---
 gnu/packages/gstreamer.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index f8c5159a3b..3b572b9f07 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -912,6 +912,28 @@ decoders, muxers, and demuxers provided by FFmpeg.")
 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")
-- 
2.29.2





  parent reply	other threads:[~2020-12-15  9:04 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-22 20:34 [bug#44806] [PATCH staging 0/6] Add Pitivi Leo Prikler
2020-11-22 20:36 ` [bug#44806] [PATCH staging 1/6] gnu: libpeas: Update to 1.28.0 Leo Prikler
2020-11-22 20:36   ` [bug#44806] [PATCH staging 2/6] gnu: gst-editing-services: Build with introspection Leo Prikler
2020-12-15  7:17     ` Leo Famulari
2020-11-22 20:36   ` [bug#44806] [PATCH staging 3/6] gnu: Add gst-plugins/selection Leo Prikler
2020-12-15  7:19     ` Leo Famulari
2020-11-22 20:36   ` [bug#44806] [PATCH staging 4/6] gnu: Update and deprecate gst-transcoder Leo Prikler
2020-12-15  7:21     ` Leo Famulari
2020-12-15  8:45       ` Leo Prikler
2020-12-15 21:21         ` Leo Famulari
2020-11-22 20:36   ` [bug#44806] [PATCH staging 5/6] gnu: Add pitivi Leo Prikler
2020-12-15  7:25     ` Leo Famulari
2020-12-15  7:55       ` Leo Prikler
2020-12-15 21:31         ` Leo Famulari
2020-12-16  0:18           ` Leo Prikler
2020-12-29 18:28             ` Leo Prikler
2020-12-29 19:04               ` Leo Famulari
2020-12-29 19:27                 ` bug#44806: " Leo Prikler
2020-11-22 20:36   ` [bug#44806] [PATCH staging 6/6] gnu: ffmpeg-4.2: Remove rav1e from inputs Leo Prikler
2020-12-15  8:04     ` Leo Famulari
2020-12-15  7:16 ` [bug#44806] [PATCH staging 0/6] Add Pitivi Leo Famulari
2020-12-15  9:05   ` Leo Prikler
2020-12-15  9:03 ` [bug#44806] [PATCH v2 1/5] gnu: libpeas: Update to 1.28.0 Leo Prikler
2020-12-15  9:03   ` [bug#44806] [PATCH v2 2/5] gnu: gst-editing-services: Build with introspection Leo Prikler
2020-12-15  9:03   ` Leo Prikler [this message]
2020-12-15  9:03   ` [bug#44806] [PATCH v2 4/5] gnu: Update and deprecate gst-transcoder Leo Prikler
2020-12-15  9:03   ` [bug#44806] [PATCH v2 5/5] gnu: Add pitivi Leo Prikler
2020-12-15 21:20     ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201215090306.28109-3-leo.prikler@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=44806@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.