me
/
guix
Archived
1
0
Fork 0

gnu: obs: Fix missing icons.

Fixes <https://bugs.gnu.org/43556>.
Reported-by: bdju <bdju@tilde.team>.

* gnu/packages/video.scm
(obs)[arguments]<phases>: Add 'wrap-executable' which fixes missing icons.
master
Oleg Pykhalov 2020-10-10 22:50:26 +03:00
parent e42765b675
commit 45cad97d9e
No known key found for this signature in database
GPG Key ID: 167F8EA5001AFA9C
1 changed files with 10 additions and 1 deletions

View File

@ -3011,7 +3011,16 @@ be used for realtime video capture via Linux-specific APIs.")
(arguments (arguments
`(#:configure-flags `(#:configure-flags
(list (string-append "-DOBS_VERSION_OVERRIDE=" ,version) (list (string-append "-DOBS_VERSION_OVERRIDE=" ,version)
"-DENABLE_UNIT_TESTS=TRUE"))) "-DENABLE_UNIT_TESTS=TRUE")
#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-executable
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(plugin-path (getenv "QT_PLUGIN_PATH")))
(wrap-program (string-append out "/bin/obs")
`("QT_PLUGIN_PATH" ":" prefix (,plugin-path))))
#t)))))
(native-inputs (native-inputs
`(("cmocka" ,cmocka) `(("cmocka" ,cmocka)
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)))