diff options
| author | Lars-Dominik Braun <lars@6xq.net> | 2020-07-25 10:37:16 +0200 |
|---|---|---|
| committer | Marius Bakke <marius@gnu.org> | 2020-07-25 18:47:57 +0200 |
| commit | 07dbdbd766760ce0121c1ac96fee766135fe7320 (patch) | |
| tree | 8de5e8d0f0f37f0eacfdb19238543030f3c9d70e | |
| parent | 581b37c866f92b834627fd273e5f868065a97840 (diff) | |
gnu: beets: Support replaygain plugin.
* gnu/packages/music.scm (beets)[arguments]: Add 'wrap-typelib phase.
[inputs]: Add gstreamer, gst-plugins-base, gst-plugins-good,
gobject-introspection and python-pygobject.
Signed-off-by: Marius Bakke <marius@gnu.org>
| -rw-r--r-- | gnu/packages/music.scm | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index a7e48b3ebb0..31b13947a0e 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm | |||
| @@ -3023,7 +3023,19 @@ websites such as Libre.fm.") | |||
| 3023 | #t)) | 3023 | #t)) |
| 3024 | (replace 'check | 3024 | (replace 'check |
| 3025 | (lambda _ | 3025 | (lambda _ |
| 3026 | (invoke "nosetests" "-v")))))) | 3026 | (invoke "nosetests" "-v"))) |
| 3027 | ;; Wrap the executable, so it can find python-gi (aka pygobject) and | ||
| 3028 | ;; gstreamer plugins. | ||
| 3029 | (add-after 'wrap 'wrap-typelib | ||
| 3030 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 3031 | (let ((prog (string-append (assoc-ref outputs "out") | ||
| 3032 | "/bin/beet")) | ||
| 3033 | (plugins (getenv "GST_PLUGIN_SYSTEM_PATH")) | ||
| 3034 | (types (getenv "GI_TYPELIB_PATH"))) | ||
| 3035 | (wrap-program prog | ||
| 3036 | `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,plugins)) | ||
| 3037 | `("GI_TYPELIB_PATH" ":" prefix (,types))) | ||
| 3038 | #t)))))) | ||
| 3027 | (native-inputs | 3039 | (native-inputs |
| 3028 | `(("python-beautifulsoup4" ,python-beautifulsoup4) | 3040 | `(("python-beautifulsoup4" ,python-beautifulsoup4) |
| 3029 | ("python-flask" ,python-flask) | 3041 | ("python-flask" ,python-flask) |
| @@ -3044,7 +3056,13 @@ websites such as Libre.fm.") | |||
| 3044 | ("python-mutagen" ,python-mutagen) | 3056 | ("python-mutagen" ,python-mutagen) |
| 3045 | ("python-pyacoustid" ,python-pyacoustid) | 3057 | ("python-pyacoustid" ,python-pyacoustid) |
| 3046 | ("python-pyyaml" ,python-pyyaml) | 3058 | ("python-pyyaml" ,python-pyyaml) |
| 3047 | ("python-unidecode" ,python-unidecode))) | 3059 | ("python-unidecode" ,python-unidecode) |
| 3060 | ;; For plugin replaygain. | ||
| 3061 | ("python-pygobject" ,python-pygobject) | ||
| 3062 | ("gobject-introspection" ,gobject-introspection) | ||
| 3063 | ("gst-plugins-base" ,gst-plugins-base) | ||
| 3064 | ("gst-plugins-good" ,gst-plugins-good) | ||
| 3065 | ("gstreamer" ,gstreamer))) | ||
| 3048 | (home-page "https://beets.io") | 3066 | (home-page "https://beets.io") |
| 3049 | (synopsis "Music organizer") | 3067 | (synopsis "Music organizer") |
| 3050 | (description "The purpose of beets is to get your music collection right | 3068 | (description "The purpose of beets is to get your music collection right |
