Subject: [PATCH] gnu: Add giada.

From: Sughosha <[email-masked]>
Date: Fri, 30 Dec 2022 21:26:02 +0000

* gnu/packages/music.scm (giada): New public variable.
---
 gnu/packages/music.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 5be767a138..e15cf5efb7 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -156,6 +156,7 @@ (define-module (gnu packages music)
   #:use-module (gnu packages perl-web)
   #:use-module (gnu packages php)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages pretty-print) ;for fmt
   #:use-module (gnu packages protobuf)
   #:use-module (gnu packages pulseaudio) ;libsndfile
   #:use-module (gnu packages python)
@@ -4059,6 +4060,45 @@ (define-public sooperlooper
 available memory.")
     (license license:gpl2+)))
 
+(define-public giada
+  (package
+    (name "giada")
+    (version "0.23.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/monocasual/giada")
+                     (commit (string-append "v" version))
+                     ;; TODO: Use installed libraries.
+                     (recursive? #t)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "01r7iz8s33cdiia3gxb6s1nb4h4fzc3sr8gv1is0axjqwzbmqg3c"))))
+    (build-system cmake-build-system)
+    (arguments (list #:tests? #f)) ;no test target
+    (native-inputs (list imagemagick json-modern-cxx pkg-config))
+    (inputs (list alsa-lib
+                  fmt
+                  hicolor-icon-theme
+                  jack-1
+                  libsamplerate
+                  libsndfile
+                  libx11
+                  libxcursor
+                  libxft
+                  libxinerama
+                  libxpm
+                  libxrandr
+                  pulseaudio
+                  rtmidi))
+    (home-page "https://giadamusic.com")
+    (synopsis "Music production tool")
+    (description
+     "Giada is a music production tool featuring a sample player, loop machine,
+song editor, live recorder, FX processor and MIDI controller.")
+    (license license:gpl3+)))
+
 (define-public moc
   (package
     (name "moc")
-- 
2.38.1