diff options
author | Alexey Abramov <levenson@mmer.org> | 2021-01-15 17:26:37 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-02-02 11:05:43 +0100 |
commit | 5be01dcdc1c8fa89fd120919258b574c844c13cb (patch) | |
tree | 6b104d2c8e05f5c48b009dd31adb7f8cc12cba3f /gnu/packages/video.scm | |
parent | 65454c1caa60c8f07833aa920648188ab6bbca85 (diff) | |
download | guix-5be01dcdc1c8fa89fd120919258b574c844c13cb.tar guix-5be01dcdc1c8fa89fd120919258b574c844c13cb.tar.gz |
gnu: obs: Use an environment variable for plugins location.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/video.scm (obs): Use it.
* gnu/packages/patches/obs-modules-location.patch: Patch it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/video.scm')
-rw-r--r-- | gnu/packages/video.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index cd049fb375..ef80cb4cc2 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -47,6 +47,7 @@ ;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@posteo.ro> ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru> ;;; Copyright © 2020 Antoine Côté <antoine.cote@posteo.net> +;;; Copyright © 2021 Alexey Abramov <levenson@mmer.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -3083,7 +3084,9 @@ be used for realtime video capture via Linux-specific APIs.") (file-name (git-file-name name version)) (sha256 (base32 - "1k1asqiqw757v59ayx0w029ril947hs0lcp8n91knzjl891fr4nc")))) + "1k1asqiqw757v59ayx0w029ril947hs0lcp8n91knzjl891fr4nc")) + (patches + (search-patches "obs-modules-location.patch")))) (build-system cmake-build-system) (arguments `(#:configure-flags @@ -3098,6 +3101,15 @@ be used for realtime video capture via Linux-specific APIs.") (wrap-program (string-append out "/bin/obs") `("QT_PLUGIN_PATH" ":" prefix (,plugin-path)))) #t))))) + (native-search-paths + (list (search-path-specification + (variable "OBS_PLUGINS_DIRECTORY") + (separator #f) ;single entry + (files '("lib/obs-plugins"))) + (search-path-specification + (variable "OBS_PLUGINS_DATA_DIRECTORY") + (separator #f) ;single entry + (files '("share/obs/obs-plugins"))))) (native-inputs `(("cmocka" ,cmocka) ("pkg-config" ,pkg-config))) |