From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLDBq-00048m-7R for guix-patches@gnu.org; Sat, 02 Dec 2017 14:11:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLDBn-0007kn-01 for guix-patches@gnu.org; Sat, 02 Dec 2017 14:11:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLDBm-0007ka-Qn for guix-patches@gnu.org; Sat, 02 Dec 2017 14:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eLDBm-0003rR-Ff for guix-patches@gnu.org; Sat, 02 Dec 2017 14:11:02 -0500 Subject: [bug#29535] [PATCH] gnu: Add cli-visualizer. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLDAh-00042S-AE for guix-patches@gnu.org; Sat, 02 Dec 2017 14:09:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLDAe-000622-4j for guix-patches@gnu.org; Sat, 02 Dec 2017 14:09:55 -0500 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:46867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLDAd-0005yt-Sb for guix-patches@gnu.org; Sat, 02 Dec 2017 14:09:52 -0500 Received: by mail-lf0-x233.google.com with SMTP id r143so15036452lfe.13 for ; Sat, 02 Dec 2017 11:09:51 -0800 (PST) Received: from magnolia (ppp78-37-138-34.pppoe.avangarddsl.ru. [78.37.138.34]) by smtp.gmail.com with ESMTPSA id n36sm1636501lfi.78.2017.12.02.11.09.48 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Dec 2017 11:09:48 -0800 (PST) From: Oleg Pykhalov Date: Sat, 02 Dec 2017 22:05:36 +0300 Message-ID: <87h8t9ne67.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-cli-visualizer.patch Content-Description: [PATCH] gnu: Add cli-visualizer. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29535@debbugs.gnu.org >From 54a00afb4e628019dbfe3f9b7f09a553dab3cfb9 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 2 Dec 2017 22:03:13 +0300 Subject: [PATCH] gnu: Add cli-visualizer. * gnu/packages/audio.scm (cli-visualizer): New variable. --- gnu/packages/audio.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index da9314392..6ca250f0c 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -3087,3 +3087,43 @@ mixers.") customized and extended using either the s7 Scheme implementation (included in the Snd sources), Ruby, or Forth.") (license (license:non-copyleft "file://COPYING")))) + +(define-public cli-visualizer + (package + (name "cli-visualizer") + (version "1.6") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/dpayne/cli-visualizer/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07zkm87f2fr8kc6531zrkya7q81sdanm6813y2f54mg13g41y6hi")))) + (build-system gnu-build-system) + (inputs + `(("fftw" ,fftw) + ("ncurses" ,ncurses) + ("pulseaudio" ,pulseaudio) + ("which" ,which))) + (arguments + '(#:tests? #f ; no tests + #:make-flags + (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-sudo + (lambda _ (substitute* "install.sh" (("sudo") "")))) + (add-before 'install 'make-prefix + (lambda _ (mkdir-p (string-append (assoc-ref %outputs "out") "/bin")))) + (add-after 'install 'data + (lambda _ (for-each (lambda (file) + (install-file file "/share/doc")) + (list "asound_alsa.conf" "asound_alsa_with_dmix.conf" + "basic_colors" "blue" "config" "rainbow"))))))) + (home-page "https://github.com/dpayne/cli-visualizer/") + (synopsis "CLI audio visualizer") + (description "@code{cli-visualizer} provides a command line audio +visualizer for MPD, Alsa and Pulseaudio.") + (license license:expat))) -- 2.15.0