From: Kei Kebreau <kei@openmailbox.org>
To: ng0 <ng0@we.make.ritual.n0.is>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add alsa-plugins.
Date: Mon, 19 Dec 2016 12:59:52 -0500 [thread overview]
Message-ID: <87h95z3ilj.fsf@openmailbox.org> (raw)
In-Reply-To: <20161031143958.24208-2-ng0@we.make.ritual.n0.is> (ng0@we.make.ritual.n0.is's message of "Mon, 31 Oct 2016 14:39:58 +0000")
[-- Attachment #1: Type: text/plain, Size: 4736 bytes --]
ng0 <ng0@we.make.ritual.n0.is> writes:
> * gnu/packages/linux.scm (alsa-plugins): New variable.
> ---
> gnu/packages/linux.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 63 insertions(+)
>
> diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
> index 8f0a9ab..3b20c95 100644
> --- a/gnu/packages/linux.scm
> +++ b/gnu/packages/linux.scm
> @@ -15,6 +15,7 @@
> ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
> ;;; Copyright © 2016 David Craven <david@craven.ch>
> ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
> +;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -69,6 +70,8 @@
> #:use-module (gnu packages slang)
> #:use-module (gnu packages texinfo)
> #:use-module (gnu packages tls)
> + #:use-module (gnu packages video)
> + #:use-module (gnu packages xiph)
> #:use-module (gnu packages xml)
> #:use-module (gnu packages xdisorg)
> #:use-module (gnu packages xorg)
> @@ -869,6 +872,66 @@ MIDI functionality to the Linux-based operating system.")
> ;; GPLv2-only.
> (license license:gpl2)))
>
> +(define-public alsa-plugins
> + (package
> + (name "alsa-plugins")
> + (version "1.1.1")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append "ftp://ftp.alsa-project.org/pub/plugins/"
> + name "-" version ".tar.bz2"))
> + (sha256
> + (base32
> + "1w81z5jlwqhd1l2m7qrq69lc4k9dnrg1wn52jsl2hrf3hbhd394f"))))
> + (build-system gnu-build-system)
> + ;; TODO: Split libavcodec and speex if possible. It looks like they can not
> + ;; be split, there are references to both in files.
> + ;; TODO: Remove OSS related plugins, they add support to run native
> + ;; ALSA applications on OSS however we do not offer OSS and OSS is
> + ;; obsolete.
> + (outputs '("out" "pulseaudio"))
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (add-after 'install 'split
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + ;; Distribute the binaries to the various outputs.
> + (let* ((out (assoc-ref outputs "out"))
> + (outlib (string-append out "/lib/alsa-lib"))
> + (outconf (string-append out "/share/alsa/alsa.conf.d"))
> + (pua (assoc-ref outputs "pulseaudio"))
> + (pualib (string-append pua "/lib/alsa-lib"))
> + (puaconf (string-append pua "/share/alsa/alsa.conf.d")))
> + (mkdir-p puaconf)
> + (mkdir-p pualib)
> + (for-each (lambda (file)
> + (rename-file file (string-append puaconf "/" file)))
> + (find-files out ".*\\.(conf|example)"))
> + (for-each (lambda (file)
> + (rename-file file (string-append pualib "/" file)))
> + (find-files out ".*pulse\\.(la|so)"))
> + (delete-file-recursively (string-append out "/share")))
> + #t)))))
"find-files" is returning the entire path to the files, so "rename-file"
sees the files' destination as
"/gnu/store/.../gnu/store...destination-file". You need to adjust
find-files accordingly, perhaps by changing into the directory to be
copied from first and then calling "find-files" from the current
directory ".". Hope that makes sense. :-)
> + (inputs
> + `(("alsa-lib" ,alsa-lib)
> + ("speex" ,speex) ; libspeexdsp resampling plugin
> + ("libsamplerate" ,libsamplerate) ; libsamplerate resampling plugin
> + ("ffmpeg" ,ffmpeg) ; libavcodec resampling plugin, a52 plugin
> + ("pulseaudio" ,pulseaudio))) ; PulseAudio plugin
> + (native-inputs
> + `(("pkg-config" ,pkg-config)))
> + (home-page "http://www.alsa-project.org/")
> + (synopsis "Plugins for the Advanced Linux Sound Architecture (ALSA)")
> + (description
> + "The Advanced Linux Sound Architecture (ALSA) provides audio and
> +MIDI functionality to the Linux-based operating system. This package enhances ALSA
> +by providing additional plugins which include: upmixing, downmixing, jackd and
> +pulseaudio support for native alsa applications, format conversion (s16 to a52), and
> +external rate conversion.")
> + (license (list license:gpl2+
> + ;; `rate/rate_samplerate.c': LGPL v2.1 or later.
> + license:lgpl2.1+))))
> +
> (define-public iptables
> (package
> (name "iptables")
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2016-12-19 18:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-29 14:43 [PATCH] alsa-plugins , revision 2 ng0
2016-10-29 14:43 ` [PATCH] gnu: Add alsa-plugins ng0
2016-10-29 21:35 ` Ricardo Wurmus
2016-10-31 14:39 ` [PATCH] alsa-plugins, revision 3 ng0
2016-10-31 14:39 ` [PATCH] gnu: Add alsa-plugins ng0
2016-12-19 17:59 ` Kei Kebreau [this message]
2016-12-20 14:53 ` alsa-plugins, new version of patch ng0
2016-12-20 14:53 ` [PATCH] gnu: Add alsa-plugins ng0
2016-12-20 15:52 ` alsa-plugins, new version of patch Kei Kebreau
-- strict thread matches above, loose matches on Subject: below --
2016-10-29 12:09 [PATCH]: alsa-plugins ng0
2016-10-29 12:09 ` [PATCH] gnu: Add alsa-plugins ng0
2016-10-29 12:20 ` ng0
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=87h95z3ilj.fsf@openmailbox.org \
--to=kei@openmailbox.org \
--cc=guix-devel@gnu.org \
--cc=ng0@we.make.ritual.n0.is \
/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).