unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#45960] [PATCH] gnu: Add obs-spectralizer.
@ 2021-01-18 16:57 Andrew Tropin
  2021-02-02  9:34 ` bug#45960: " Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Tropin @ 2021-01-18 16:57 UTC (permalink / raw)
  To: 45960

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-gnu-Add-obs-spectralizer.patch --]
[-- Type: text/x-patch, Size: 1632 bytes --]

From cf3a2cf54a17e131dcd57a1fb280d3586521c500 Mon Sep 17 00:00:00 2001
From: Andrew Tropin <andrew@trop.in>
Date: Mon, 18 Jan 2021 19:39:44 +0300
Subject: [PATCH] gnu: Add obs-spectralizer.

* gnu/packages/video.scm (obs-spectralizer): New variable.
---
 gnu/packages/video.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index b876ef6adc..d0df1c36c1 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -3163,6 +3163,33 @@ and JACK.")
 compositors.")
     (license license:gpl3)))
 
+(define-public obs-spectralizer
+  (package
+    (name "obs-spectralizer")
+    (version "1.3.3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/univrsal/spectralizer")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32
+          "0q75cnyqydpvfda51zm9gxqj3wqr99ad0lxzjhw0ld67qvj1ag6i"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f
+       #:configure-flags
+       (list "-DGLOBAL_INSTALLATION=ON" "-DUSE_CMAKE_LIBDIR=ON")))
+    (inputs `(("obs" ,obs)
+              ("fftw" ,fftw)))
+    (home-page "https://github.com/univrsal/spectralizer")
+    (synopsis "Plugin for @code{obs} for audio visualization")
+    (description "Allows vizualisation of MPD and internal @code{obs} audio
+sources.  Using @code{fftw}, based on cli-visualizer.")
+    (license license:gpl2)))
+
 (define-public libvdpau
   (package
     (name "libvdpau")
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#45960: [PATCH] gnu: Add obs-spectralizer.
  2021-01-18 16:57 [bug#45960] [PATCH] gnu: Add obs-spectralizer Andrew Tropin
@ 2021-02-02  9:34 ` Ludovic Courtès
  2021-02-02  9:53   ` [bug#45960] " Andrew Tropin
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2021-02-02  9:34 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 45960-done

Hi,

Andrew Tropin <andrew@trop.in> skribis:

> From cf3a2cf54a17e131dcd57a1fb280d3586521c500 Mon Sep 17 00:00:00 2001
> From: Andrew Tropin <andrew@trop.in>
> Date: Mon, 18 Jan 2021 19:39:44 +0300
> Subject: [PATCH] gnu: Add obs-spectralizer.
>
> * gnu/packages/video.scm (obs-spectralizer): New variable.

Applied!  I didn’t check whether OBS can actually load it, but I see
it’s installed under ‘lib/obs-plugins’, which is where the new search
path expects to find it, so it should be fine.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#45960] [PATCH] gnu: Add obs-spectralizer.
  2021-02-02  9:34 ` bug#45960: " Ludovic Courtès
@ 2021-02-02  9:53   ` Andrew Tropin
  2021-02-03 10:43     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Tropin @ 2021-02-02  9:53 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 45960-done

Very nice! Thank you!

It won't load until obs updated to the commit with OBS_PLUGINS*_PATH
variables support [fn:1], but as you said it's future-proof and already
installs to the correct location.

There is another very similar patch, which adds another obs plugin. You
probably already aware of it, but here is a link:
http://issues.guix.gnu.org/45961. Accidentally, it has empty propagated
inputs and I'm not sure if it will apply to current master at all, but I
can update it if it's needed.


* Footnotes

[fn:1] http://issues.guix.gnu.org/46113

-- 
Best regards,
Andrew Tropin




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#45960] [PATCH] gnu: Add obs-spectralizer.
  2021-02-02  9:53   ` [bug#45960] " Andrew Tropin
@ 2021-02-03 10:43     ` Ludovic Courtès
  2021-02-03 14:00       ` [bug#45960] [bug#46113] bug#45960: " guix-patches--- via
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2021-02-03 10:43 UTC (permalink / raw)
  To: Andrew Tropin; +Cc: 46113, 45960-done

Hi,

Andrew Tropin <andrew@trop.in> skribis:

> It won't load until obs updated to the commit with OBS_PLUGINS*_PATH
> variables support [fn:1], but as you said it's future-proof and already
> installs to the correct location.
>
> There is another very similar patch, which adds another obs plugin. You
> probably already aware of it, but here is a link:
> http://issues.guix.gnu.org/45961. Accidentally, it has empty propagated
> inputs and I'm not sure if it will apply to current master at all, but I
> can update it if it's needed.
>
>
> * Footnotes
>
> [fn:1] http://issues.guix.gnu.org/46113

Ah ha!  So on ‘master’, there’s the OBS_PLUGINS_DIRECTORY patch that you
provided earlier, which is why I wrote that the plugins should work.

Should we wait for the next OBS release instead of packaging an
arbitrary commit?

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#45960] [bug#46113] bug#45960: [PATCH] gnu: Add obs-spectralizer.
  2021-02-03 10:43     ` Ludovic Courtès
@ 2021-02-03 14:00       ` guix-patches--- via
  0 siblings, 0 replies; 5+ messages in thread
From: guix-patches--- via @ 2021-02-03 14:00 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 46113, 45960-done, Andrew Tropin

Hi,

Thanks for merging my patch =) I am not insist on keeping [1], but I do think that is more cleaner solution. 

With the upstream patch, Obs will be able to extend the list of plugin directories. We are going to add ~/.guix-profile/ to that list, which means Obs will have two different locations with partially different so files. It doesn't look clean to me. 

In addition, [1] doesn't require to have OBS_PLUGINS_DIRECTORY variables. If there is no such, it will run with its defaults.


Footnotes:
[1]  https://issues.guix.gnu.org/45707

-- 
Alexey




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-03 14:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 16:57 [bug#45960] [PATCH] gnu: Add obs-spectralizer Andrew Tropin
2021-02-02  9:34 ` bug#45960: " Ludovic Courtès
2021-02-02  9:53   ` [bug#45960] " Andrew Tropin
2021-02-03 10:43     ` Ludovic Courtès
2021-02-03 14:00       ` [bug#45960] [bug#46113] bug#45960: " guix-patches--- via

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).