Subject: [bug#41552] [PATCH] gnu: Add remid-lv2.

From: Alexandros Theodotou <[email-masked]>
Date: Wed, 08 Jul 2020 20:43:15 +0100

Hi,

Thanks for the feedback. 

I fixed the patch although I'm not sure what to do with the
description/summary - I don't know what those are either, I just know
that it's a cool audio plugin. Feel free to edit it.

Thanks,
Alex

On Sat, 2020-05-30 at 13:33 +0200, Marius Bakke wrote:
> Alexandros Theodotou <[email-masked]> writes:
> 
> > Hi,
> > 
> > This patch adds the reMID LV2 plugin.
> 
> Thanks!
> 
> [...]
> 
> > +(define-public remid-lv2
> > +  (package
> > +    (name "remid-lv2")
> > +    (version "0.3")
> > +    (source
> > +      (origin
> > +        (method url-fetch)
> > +        (uri (string-append "https://github.com/ssj71/"
> > +                            "reMID.lv2/archive/v"
> > +                            version ".tar.gz"))
> 
> The GitHub /archive/ URLs are not stable: they might fall out of
> GitHubs
> cache and be regenerated, with different time stamps.  So we should
> use
> git-fetch here instead.
> 
> This is different from "/releases/", which are
> uploaded.  Unfortunately
> GitHubs UI makes it difficult to tell the difference short of looking
> at
> the URL.
> 
> > +        (file-name (string-append name "-" version ".tar.gz"))
> > +        (sha256
> > +          (base32
> > +            "1kffpv90a967wwpsa0jb1jp5qnhf85m4ap8nfw8wih71rcrgg4h3"
> > ))))
> > +    (build-system cmake-build-system)
> > +    (arguments
> > +     `(#:tests? #f))                      ; no tests included
> > +    (inputs
> > +     `(("glib" ,glib)
> > +       ("alsa-lib" ,alsa-lib)
> > +       ("jack" ,jack-1)
> > +       ("lv2" ,lv2)))
> 
> Nit: we usually sort inputs.  Helpful when there are dozens.
> 
> > +    (native-inputs
> > +     `(("pkg-config" ,pkg-config)))
> > +    (home-page "https://github.com/ssj71/reMID.lv2")
> > +    (synopsis
> > +      "MIDI-controlled implementation of the SID 6581 chip used in
> > the
> > +Commodore 64")
> > +    (description
> > +      "The 6581 SID chip is the sound chip used in the Commodore
> > 64 computer.
> > +reMID is a MIDI implementation of the 6581 SID chip using the
> > reSID library
> > +to provide a virtual SID-based synthesizer, controllable in real-
> > time via
> > +MIDI.  It includes support for scripted instruments that allow
> > complex sonic
> > +control of the chip.")
> 
> Why yes, I know some of these words :-) would it make sense to define
> "SID" here with @acronym?
> 
> > +    (license license:gpl2)))
> 
> This is actually GPL2+, because none of the source files say "version
> 2
> only" (and some actually say explicitly GPL2-or-later).
> 
> Can you send an updated patch?
From 7cc536dfeeea735afb8e15f83c5eef8aac020c4f Mon Sep 17 00:00:00 2001
From: Alexandros Theodotou <[email-masked]>
Date: Wed, 8 Jul 2020 20:39:38 +0100
Subject: [PATCH] gnu: Add remid-lv2.

* gnu/packages/music.scm (remid-lv2): New variable.
---
 gnu/packages/music.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index d0f5bee3a0..6042015dda 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -5419,6 +5419,42 @@ automation that comes as an LV2 plugin bundle with a custom UI.")
     (home-page "https://git.zrythm.org/cgit/ZLFO/")
     (license license:agpl3+)))
 
+(define-public remid-lv2
+  (package
+    (name "remid-lv2")
+    (version "0.3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/ssj71/reMID.lv2.git")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "062kriniidsrhzwrf89kfxm9wb0cmgrl07asnlmgil8vcl7gl9y5"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f))                      ; no tests included
+    (inputs
+     `(("alsa-lib" ,alsa-lib)
+       ("glib" ,glib)
+       ("jack" ,jack-1)
+       ("lv2" ,lv2)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "https://github.com/ssj71/reMID.lv2")
+    (synopsis
+      "MIDI-controlled implementation of the SID 6581 chip used in the
+Commodore 64")
+    (description
+      "The 6581 SID chip is the sound chip used in the Commodore 64 computer.
+reMID is a MIDI implementation of the 6581 SID chip using the reSID library
+to provide a virtual SID-based synthesizer, controllable in real-time via
+MIDI.  It includes support for scripted instruments that allow complex sonic
+control of the chip.")
+    (license license:gpl2+)))
+
 (define-public vl1-emulator
   (package
     (name "vl1-emulator")
-- 
2.27.0