at 16.09-beta 38 lines 1.2 kB view raw
1{stdenv, fetchurl, alsaLib, gettext, ncurses, libsamplerate, pciutils, fftw}: 2 3stdenv.mkDerivation rec { 4 name = "alsa-utils-${version}"; 5 version = "1.1.0"; 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 = "3b1c3135b76e14532d3dd23fb15759ddd7daf9ffbc183f7a9a0a3a86374748f1"; 13 }; 14 15 patchPhase = '' 16 substituteInPlace alsa-info/alsa-info.sh \ 17 --replace "which" "type -p" \ 18 --replace "lspci" "${pciutils}/bin/lspci" 19 ''; 20 buildInputs = [ gettext alsaLib ncurses libsamplerate fftw ]; 21 22 configureFlags = "--disable-xmlto --with-udev-rules-dir=$(out)/lib/udev/rules.d"; 23 24 installFlags = "ASOUND_STATE_DIR=$(TMPDIR)/dummy"; 25 26 meta = { 27 homepage = http://www.alsa-project.org/; 28 description = "ALSA, the Advanced Linux Sound Architecture utils"; 29 30 longDescription = '' 31 The Advanced Linux Sound Architecture (ALSA) provides audio and 32 MIDI functionality to the Linux-based operating system. 33 ''; 34 35 platforms = stdenv.lib.platforms.linux; 36 maintainers = [ stdenv.lib.maintainers.AndersonTorres ]; 37 }; 38}