* [PATCH] gnu: Add sox.
@ 2015-07-14 16:08 Alex Kost
2015-07-14 17:14 ` Ricardo Wurmus
0 siblings, 1 reply; 2+ messages in thread
From: Alex Kost @ 2015-07-14 16:08 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 142 bytes --]
Is "audio.scm" the right place for this package? BTW there is
"audacity.scm"; shouldn't 'audacity' package be moved to "audio.scm" as
well?
[-- Attachment #2: 0001-gnu-Add-sox.patch --]
[-- Type: text/x-patch, Size: 2908 bytes --]
From cbbebb51841f073a64a83d5c56e92333d1b743fe Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
Date: Mon, 13 Jul 2015 19:15:07 +0300
Subject: [PATCH] gnu: Add sox.
* gnu/packages/audio.scm (sox): New variable.
---
gnu/packages/audio.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index ff6fb46..0af1661 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
+;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -45,6 +46,7 @@
#:use-module (gnu packages gtk)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gperf)
+ #:use-module (gnu packages image)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages qt)
#:use-module (gnu packages linux)
@@ -1518,6 +1520,47 @@ application developers writing sound processing tools that require tempo/pitch
control functionality, or just for playing around with the sound effects.")
(license license:lgpl2.1+)))
+(define-public sox
+ (package
+ (name "sox")
+ (version "14.4.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/sox/sox-"
+ version ".tar.bz2"))
+ (sha256
+ (base32
+ "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:configure-flags
+ ;; The upstream asks to identify the distribution to diagnose SoX
+ ;; bug reports.
+ '("--with-distro=Guix System Distribution")))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("alsa-lib" ,alsa-lib)
+ ("ao" ,ao)
+ ("flac" ,flac)
+ ("lame" ,lame)
+ ("libid3tag" ,libid3tag)
+ ("libltdl" ,libltdl)
+ ("libmad" ,libmad)
+ ("libpng" ,libpng)
+ ("libvorbis" ,libvorbis)
+ ("pulseaudio" ,pulseaudio)))
+ (home-page "http://sox.sourceforge.net")
+ (synopsis "Sound processing utility")
+ (description
+ "SoX (Sound eXchange) is a command line utility that can convert
+various formats of computer audio files to other formats. It can also
+apply various effects to these sound files, and, as an added bonus, SoX
+can play and record audio files.")
+ ;; sox.c is distributed under GPL, while the files that make up
+ ;; libsox are licensed under LGPL.
+ (license (list license:gpl2+ license:lgpl2.1+))))
+
(define-public soxr
(package
(name "soxr")
--
2.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: Add sox.
2015-07-14 16:08 [PATCH] gnu: Add sox Alex Kost
@ 2015-07-14 17:14 ` Ricardo Wurmus
0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2015-07-14 17:14 UTC (permalink / raw)
To: Alex Kost; +Cc: guix-devel
> Is "audio.scm" the right place for this package? BTW there is
> "audacity.scm"; shouldn't 'audacity' package be moved to "audio.scm" as
> well?
I would say “audio.scm” is the right place. ‘audacity’ was placed in
its own module to avoid dependency cycles, if I recall correctly.
(While we are talking about moving stuff, I suggest moving packages from
‘pulseaudio.scm’ to just ‘audio.scm’.)
~~ Ricardo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-14 17:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 16:08 [PATCH] gnu: Add sox Alex Kost
2015-07-14 17:14 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.