at 18.09-beta 1.1 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.6"; 6 7 src = fetchurl { 8 url = "mirror://alsa/utils/${name}.tar.bz2"; 9 sha256 = "0vnkyymgwj9rfdb11nvab30dnfrylmakdfildxl0y8mj836awp0m"; 10 }; 11 12 patchPhase = '' 13 substituteInPlace alsa-info/alsa-info.sh \ 14 --replace "which" "type -p" \ 15 --replace "lspci" "${pciutils}/bin/lspci" 16 ''; 17 nativeBuildInputs = [ gettext ]; 18 buildInputs = [ alsaLib ncurses libsamplerate fftw ]; 19 20 configureFlags = [ "--disable-xmlto" "--with-udev-rules-dir=$(out)/lib/udev/rules.d" ]; 21 22 installFlags = "ASOUND_STATE_DIR=$(TMPDIR)/dummy"; 23 24 meta = with stdenv.lib; { 25 homepage = http://www.alsa-project.org/; 26 description = "ALSA, the Advanced Linux Sound Architecture utils"; 27 longDescription = '' 28 The Advanced Linux Sound Architecture (ALSA) provides audio and 29 MIDI functionality to the Linux-based operating system. 30 ''; 31 32 license = licenses.gpl2; 33 platforms = platforms.linux; 34 maintainers = [ maintainers.AndersonTorres ]; 35 }; 36}