1{stdenv, fetchurl, alsaLib, gettext, ncurses, libsamplerate, pciutils, fftw}:
2
3stdenv.mkDerivation rec {
4 name = "alsa-utils-${version}";
5 version = "1.1.5";
6
7 src = fetchurl {
8 urls = [
9 "ftp://ftp.alsa-project.org/pub/utils/${name}.tar.bz2"
10 "http://alsa.cybermirror.org/utils/${name}.tar.bz2"
11 ];
12 sha256 = "1s727md6mb408y2cfwzjkx23abxhampyrjdkgpyygdhxx62x42rj";
13 };
14
15 patchPhase = ''
16 substituteInPlace alsa-info/alsa-info.sh \
17 --replace "which" "type -p" \
18 --replace "lspci" "${pciutils}/bin/lspci"
19 '';
20 nativeBuildInputs = [ gettext ];
21 buildInputs = [ alsaLib ncurses libsamplerate fftw ];
22
23 configureFlags = "--disable-xmlto --with-udev-rules-dir=$(out)/lib/udev/rules.d";
24
25 installFlags = "ASOUND_STATE_DIR=$(TMPDIR)/dummy";
26
27 meta = {
28 homepage = http://www.alsa-project.org/;
29 description = "ALSA, the Advanced Linux Sound Architecture utils";
30
31 longDescription = ''
32 The Advanced Linux Sound Architecture (ALSA) provides audio and
33 MIDI functionality to the Linux-based operating system.
34 '';
35
36 platforms = stdenv.lib.platforms.linux;
37 maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
38 };
39}