2020-09-25 04:45:31 +00:00
|
|
|
{stdenv, fetchurl, alsaLib, gettext, makeWrapper, ncurses, libsamplerate, pciutils, which, fftw}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alsa-utils";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.2.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://alsa/utils/${pname}-${version}.tar.bz2";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "1ai1z4kf91b1m3qrpwqkc1af5vm2fkdkknqv95xdwf19q94aw6gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [ gettext makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ alsaLib ncurses libsamplerate fftw ];
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-xmlto" "--with-udev-rules-dir=$(out)/lib/udev/rules.d" ];
|
|
|
|
|
|
|
|
installFlags = [ "ASOUND_STATE_DIR=$(TMPDIR)/dummy" ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/alsa-info.sh --prefix PATH : "${stdenv.lib.makeBinPath [ which pciutils ]}"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://www.alsa-project.org/";
|
|
|
|
description = "ALSA, the Advanced Linux Sound Architecture utils";
|
|
|
|
longDescription = ''
|
|
|
|
The Advanced Linux Sound Architecture (ALSA) provides audio and
|
|
|
|
MIDI functionality to the Linux-based operating system.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|