nixpkgs/pkgs/os-specific/linux/alsa-utils/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, alsaLib, gettext, ncurses, libsamplerate, pciutils, fftw}:
stdenv.mkDerivation rec {
pname = "alsa-utils";
2020-02-22 23:36:49 -08:00
version = "1.2.2";
src = fetchurl {
url = "mirror://alsa/utils/${pname}-${version}.tar.bz2";
2020-02-22 23:36:49 -08:00
sha256 = "1wz460by17rmxrcydn583rd4lhj6wlvqs6x1j5pdzxn5g3app024";
};
2015-12-22 10:51:55 -08:00
patchPhase = ''
substituteInPlace alsa-info/alsa-info.sh \
--replace "which" "type -p" \
--replace "lspci" "${pciutils}/bin/lspci"
'';
2017-12-16 20:06:59 -08:00
nativeBuildInputs = [ gettext ];
buildInputs = [ alsaLib ncurses libsamplerate fftw ];
2018-07-25 14:44:21 -07:00
configureFlags = [ "--disable-xmlto" "--with-udev-rules-dir=$(out)/lib/udev/rules.d" ];
2019-11-04 17:10:31 -08:00
installFlags = [ "ASOUND_STATE_DIR=$(TMPDIR)/dummy" ];
2018-08-14 04:32:42 -07:00
meta = with stdenv.lib; {
2020-02-22 23:36:49 -08:00
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.
'';
2018-08-14 04:32:42 -07:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.AndersonTorres ];
};
}