alsa-utils: 1.2.10 -> 1.2.12

This commit is contained in:
Colin 2024-10-10 04:57:08 +00:00
parent 1366d1af8f
commit c342eeb6cb

View File

@ -1,7 +1,7 @@
{ lib { lib
, stdenv , stdenv
, directoryListingUpdater
, fetchurl , fetchurl
, fetchpatch
, alsa-lib , alsa-lib
, alsa-plugins , alsa-plugins
, gettext , gettext
@ -9,6 +9,7 @@
, ncurses , ncurses
, libsamplerate , libsamplerate
, pciutils , pciutils
, procps
, which , which
, fftw , fftw
, pipewire , pipewire
@ -30,23 +31,12 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "alsa-utils"; pname = "alsa-utils";
version = "1.2.10"; version = "1.2.12";
src = fetchurl { src = fetchurl {
url = "mirror://alsa/utils/alsa-utils-${version}.tar.bz2"; url = "mirror://alsa/utils/alsa-utils-${version}.tar.bz2";
hash = "sha256-EEti7H8Cp84WynefSBVhbfHMIZM1A3g6kQe1lE+DBjo="; hash = "sha256-mLxmd9DAB0AGZ5BRgiMkoKsIea6lWKj2i1EXgNMM2SQ=";
}; };
patches = [
# Backport fixes for musl libc. Remove on next release
(fetchpatch {
url = "https://github.com/alsa-project/alsa-utils/commit/8c229270f6bae83b705a03714c46067a7aa57b02.patch";
hash = "sha256-sUaBHY8EHf4805nF6tyNV5jYXcJf3O+r04VXFu4dUCE=";
})
(fetchpatch {
url = "https://github.com/alsa-project/alsa-utils/commit/0925ad7f09b2dc77015784f9ac2f5e34dd0dd5c3.patch";
hash = "sha256-bgGU9On82AUbOjo+KN6WfuhqUAWM87OHnKN7plpG284=";
})
];
nativeBuildInputs = [ gettext makeWrapper ]; nativeBuildInputs = [ gettext makeWrapper ];
buildInputs = [ alsa-lib ncurses libsamplerate fftw ]; buildInputs = [ alsa-lib ncurses libsamplerate fftw ];
@ -57,10 +47,14 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
mv $out/bin/alsa-info.sh $out/bin/alsa-info mv $out/bin/alsa-info.sh $out/bin/alsa-info
wrapProgram $out/bin/alsa-info --prefix PATH : "${lib.makeBinPath [ which pciutils ]}" wrapProgram $out/bin/alsa-info --prefix PATH : "${lib.makeBinPath [ which pciutils procps ]}"
wrapProgram $out/bin/aplay --set-default ALSA_PLUGIN_DIR ${plugin-dir} wrapProgram $out/bin/aplay --set-default ALSA_PLUGIN_DIR ${plugin-dir}
''; '';
passthru.updateScript = directoryListingUpdater {
url = "https://www.alsa-project.org/files/pub/utils/";
};
meta = with lib; { meta = with lib; {
homepage = "http://www.alsa-project.org/"; homepage = "http://www.alsa-project.org/";
description = "ALSA, the Advanced Linux Sound Architecture utils"; description = "ALSA, the Advanced Linux Sound Architecture utils";