unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Apoorv via Guix-patches via <guix-patches@gnu.org>
To: 72657@debbugs.gnu.org
Subject: [bug#72657] [PATCH] Add drops package
Date: Fri, 16 Aug 2024 12:37:48 +0200 (CEST)	[thread overview]
Message-ID: <O4Pkx2g--3-9@tuta.io> (raw)


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

This is a patch to add a new package, `drops` to `gnu/packages/music.scm`.

-- 
 Sent with Tuta; enjoy secure & ad-free emails: 
 https://tuta.com

[-- Attachment #1.2: Type: text/html, Size: 401 bytes --]

[-- Attachment #2: 0004-Add-drops-package.patch --]
[-- Type: text/x-patch, Size: 3896 bytes --]

From 411195885d2853b4bb61c71e8ba4900e66066d2d Mon Sep 17 00:00:00 2001
From: apoorv569 <apoorvs569@gmail.com>
Date: Fri, 16 Aug 2024 15:31:08 +0530
Subject: [PATCH 04/13] Add drops package

---
 gnu/packages/music.scm | 62 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index f827c5b605..bb03f3d532 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -8118,6 +8118,68 @@ (define-public gxplugins-lv2
 Each plugin exists as its own submodule under this repository.")
      (license license:gpl3))))
 
+(define-public drops
+  (let ((commit "185cf4bb9852acb3b92dadb2caf8cc1a3e0369aa")
+        (revision "0"))
+    (package
+     (name "drops")
+     (version (git-version "1.0-beta.2" revision commit))
+     (source
+      (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/clearly-broken-software/drops")
+             (commit commit)
+             ;; Bundles a specific commit of the DISTRHO plugin framework.
+             (recursive? #t)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "17yf8rqn7y5598f44q3w8drzg663yl32dc9qw1dkf2cgscyrvhw6"))))
+     (build-system gnu-build-system)
+     (arguments
+      `(#:tests? #f ;no tests
+        #:make-flags
+        (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
+              (string-append "CC=" ,(cc-for-target)))
+        #:phases
+        (modify-phases %standard-phases
+                       (delete 'configure) ;no configure target
+                       (replace 'install
+                                ;; no install target
+                                (lambda* (#:key outputs #:allow-other-keys)
+                                  (let* ((out (assoc-ref outputs "out"))
+                                         (bin (string-append out "/bin"))
+                                         (lv2 (string-append out "/lib/lv2")))
+                                    ;; Install LV2.
+                                    (for-each
+                                     (lambda (file)
+                                       (copy-recursively file
+                                                         (string-append lv2 "/" (basename file))))
+                                     (find-files "bin" "\\.lv2$"
+                                                 #:directories? #t))
+                                    ;; Install executables.
+                                    (for-each
+                                     (lambda (file)
+                                       (install-file file bin))
+                                     (find-files "bin"
+                                                 (lambda (name stat)
+                                                   (and
+                                                    (equal? (dirname name) "bin")
+                                                    (not (string-suffix? ".so" name))
+                                                    (not (string-suffix? ".lv2" name))))))
+                                    #t))))))
+     (inputs (list libx11
+                   jack-1 ;; for the standalone JACK application
+                   mesa
+                   libsndfile))
+     (native-inputs (list pkg-config))
+     (synopsis "Drops Really Only Plays Samples")
+     (description
+      "Drops is a single audio file sample player plugin in lv2 and vst format for linux.
+Load an audio file, play it, loop it, pitch shift it, and make it into something entirely new.")
+     (home-page "https://github.com/clearly-broken-software/drops")
+     (license license:gpl3+))))
+
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar
-- 
2.45.2


                 reply	other threads:[~2024-08-16 10:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=O4Pkx2g--3-9@tuta.io \
    --to=guix-patches@gnu.org \
    --cc=72657@debbugs.gnu.org \
    --cc=apoorvs@tuta.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).